src/share/jaxws_classes/com/sun/xml/internal/stream/buffer/stax/NamespaceContexHelper.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
     1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/stream/buffer/stax/NamespaceContexHelper.java	Thu Apr 04 19:05:24 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/stream/buffer/stax/NamespaceContexHelper.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -74,9 +74,6 @@
    1.11      // Current position to store the next namespace context
    1.12      private int contextPosition;
    1.13  
    1.14 -    // The current namespace context
    1.15 -    private int currentContext;
    1.16 -
    1.17      /**
    1.18       * Create a new NamespaceContexHelper.
    1.19       *
    1.20 @@ -88,7 +85,7 @@
    1.21          prefixes[1] = "xmlns";
    1.22          namespaceURIs[1] = "http://www.w3.org/2000/xmlns/";
    1.23  
    1.24 -        currentContext = namespacePosition = 2;
    1.25 +        namespacePosition = 2;
    1.26      }
    1.27  
    1.28  
    1.29 @@ -257,7 +254,7 @@
    1.30          if (contextPosition == contexts.length)
    1.31              resizeContexts();
    1.32  
    1.33 -        contexts[contextPosition++] = currentContext = namespacePosition;
    1.34 +        contexts[contextPosition++] = namespacePosition;
    1.35      }
    1.36  
    1.37      private void resizeContexts() {
    1.38 @@ -274,7 +271,7 @@
    1.39       */
    1.40      public void popContext() {
    1.41          if (contextPosition > 0) {
    1.42 -            namespacePosition = currentContext = contexts[--contextPosition];
    1.43 +            namespacePosition = contexts[--contextPosition];
    1.44          }
    1.45      }
    1.46  
    1.47 @@ -284,6 +281,6 @@
    1.48       * Pop all namespace contexts and reset the root context.
    1.49       */
    1.50      public void resetContexts() {
    1.51 -        currentContext = namespacePosition = 2;
    1.52 +        namespacePosition = 2;
    1.53      }
    1.54  }

mercurial