src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/framework/WSDLLocation.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
     1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/framework/WSDLLocation.java	Thu Apr 04 19:05:24 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/framework/WSDLLocation.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 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 @@ -43,17 +43,12 @@
    1.11          if (idPos >= max) {
    1.12              LocationContext newContexts[] = new LocationContext[max * 2];
    1.13              System.arraycopy(contexts, 0, newContexts, 0, max);
    1.14 -            max *= 2;
    1.15              contexts = newContexts;
    1.16          }
    1.17          currentContext = contexts[idPos];
    1.18          if (currentContext == null) {
    1.19              contexts[idPos] = currentContext = new LocationContext();
    1.20          }
    1.21 -        if (idPos > 0) {
    1.22 -            currentContext.setParent(contexts[idPos - 1]);
    1.23 -        }
    1.24 -
    1.25      }
    1.26  
    1.27      public void pop() {
    1.28 @@ -63,7 +58,7 @@
    1.29          }
    1.30      }
    1.31  
    1.32 -    public void reset() {
    1.33 +    public final void reset() {
    1.34          contexts = new LocationContext[32];
    1.35          idPos = 0;
    1.36          contexts[idPos] = currentContext = new LocationContext();
    1.37 @@ -91,11 +86,6 @@
    1.38              return location;
    1.39          }
    1.40  
    1.41 -        void setParent(LocationContext parent) {
    1.42 -            parentLocation = parent;
    1.43 -        }
    1.44 -
    1.45          private String location;
    1.46 -        private LocationContext parentLocation;
    1.47      }
    1.48  }

mercurial