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

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -32,12 +32,10 @@
 import com.sun.tools.internal.ws.resources.WsdlMessages;
 
 import javax.xml.namespace.QName;
 import java.util.*;
 
-import org.xml.sax.helpers.LocatorImpl;
-
 /**
  * An abstract class for documents containing entities.
  *
  * @author WS Development Team
  */

@@ -161,14 +159,15 @@
     private final Set importedDocuments;
     private final List importedEntities;
     private final Set includedDocuments;
     private final List includedEntities;
 
-    private class LocallyValidatingAction implements EntityAction {
+    private static class LocallyValidatingAction implements EntityAction {
         public LocallyValidatingAction() {
         }
 
+        @Override
         public void perform(Entity entity) {
             try {
                 entity.validateThis();
                 entity.withAllSubEntitiesDo(this);
             } catch (ValidationException e) {