src/share/classes/jdk/internal/util/xml/BasicXmlPropertiesProvider.java

Print this page

        

@@ -36,24 +36,24 @@
  * A {@code XmlPropertiesProvider} implementation that uses the UKit XML parser.
  */
 
 public class BasicXmlPropertiesProvider extends XmlPropertiesProvider {
 
-    private final PropertiesDefaultHandler handler = new PropertiesDefaultHandler();
-
     public BasicXmlPropertiesProvider() { }
 
     @Override
     public void load(Properties props, InputStream in)
         throws IOException, InvalidPropertiesFormatException
     {
+        PropertiesDefaultHandler handler = new PropertiesDefaultHandler();
         handler.load(props, in);
     }
 
     @Override
     public void store(Properties props, OutputStream os, String comment,
                       String encoding)
         throws IOException
     {
+        PropertiesDefaultHandler handler = new PropertiesDefaultHandler();
         handler.store(props, os, comment, encoding);
     }
 }