jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/parser/AbstractReferenceFinderImpl.java
--- a/jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/parser/AbstractReferenceFinderImpl.java Wed Jul 05 18:49:16 2017 +0200
+++ b/jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/parser/AbstractReferenceFinderImpl.java Tue Apr 09 14:51:13 2013 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2013, 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
@@ -70,6 +70,7 @@
*/
protected abstract String findExternalResource( String nsURI, String localName, Attributes atts);
+ @Override
public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
throws SAXException {
super.startElement(namespaceURI, localName, qName, atts);
@@ -79,16 +80,17 @@
try {
// absolutize URL.
- String lsi = locator.getSystemId();
- String ref;
- if (lsi.startsWith("jar:")) {
- int bangIdx = lsi.indexOf('!');
- if (bangIdx > 0) {
- ref = new URL(new URL(lsi), relativeRef).toString();
- } else
- ref = relativeRef;
- } else
- ref = new URI(lsi).resolve(new URI(relativeRef)).toString();
+ assert locator != null;
+ String lsi = locator.getSystemId();
+ String ref;
+ if (lsi.startsWith("jar:")) {
+ int bangIdx = lsi.indexOf('!');
+ if (bangIdx > 0) {
+ ref = new URL(new URL(lsi), relativeRef).toString();
+ } else
+ ref = relativeRef;
+ } else
+ ref = new URI(lsi).resolve(new URI(relativeRef)).toString();
// then parse this schema as well,
// but don't mark this document as a root.
@@ -112,6 +114,7 @@
private Locator locator;
+ @Override
public void setDocumentLocator(Locator locator) {
super.setDocumentLocator(locator);
this.locator = locator;