You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by gn...@apache.org on 2018/06/01 06:00:29 UTC

svn commit: r1832657 - /aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java

Author: gnodet
Date: Fri Jun  1 06:00:28 2018
New Revision: 1832657

URL: http://svn.apache.org/viewvc?rev=1832657&view=rev
Log:
Fix deprecated method usage

Modified:
    aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java

Modified: aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java?rev=1832657&r1=1832656&r2=1832657&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java (original)
+++ aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java Fri Jun  1 06:00:28 2018
@@ -784,7 +784,7 @@ public class NamespaceHandlerRegistryImp
                     try {
                         InputStream is = url.openStream();
                         try {
-                            XMLStreamReader reader = XMLInputFactory.newFactory().createXMLStreamReader(is);
+                            XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(is);
                             try {
                                 reader.nextTag();
                                 String nsuri = reader.getNamespaceURI();