# HG changeset patch # User joehw # Date 1500327600 25200 # Node ID cb2719d70590e0e95ffd6061f627540379d93b1e # Parent aa989c5a02650c8f27eb7e48459f03e33d92383d 8183519: XMLInputFactory.newFactory() is marked as deprecated Reviewed-by: lancea diff -r aa989c5a0265 -r cb2719d70590 jaxp/src/java.xml/share/classes/javax/xml/stream/XMLEventFactory.java --- a/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLEventFactory.java Thu Jul 13 19:34:30 2017 +0000 +++ b/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLEventFactory.java Mon Jul 17 14:40:00 2017 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2017, 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 @@ -125,10 +125,6 @@ *

* Once an application has obtained a reference to a XMLEventFactory it * can use the factory to configure and obtain stream instances. - *

- * Note that this is a new method that replaces the deprecated newInstance() method. - * No changes in behavior are defined by this replacement method relative to - * the deprecated method. * * @throws FactoryConfigurationError in case of {@linkplain * java.util.ServiceConfigurationError service configuration error} or if diff -r aa989c5a0265 -r cb2719d70590 jaxp/src/java.xml/share/classes/javax/xml/stream/XMLInputFactory.java --- a/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLInputFactory.java Thu Jul 13 19:34:30 2017 +0000 +++ b/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLInputFactory.java Mon Jul 17 14:40:00 2017 -0700 @@ -209,16 +209,11 @@ *

* Once an application has obtained a reference to a XMLInputFactory it * can use the factory to configure and obtain stream instances. - *

- * Note that this is a new method that replaces the deprecated newInstance() method. - * No changes in behavior are defined by this replacement method relative to - * the deprecated method. * * @throws FactoryConfigurationError in case of {@linkplain * java.util.ServiceConfigurationError service configuration error} or if * the implementation is not available or cannot be instantiated. */ - @Deprecated(since="1.7") public static XMLInputFactory newFactory() throws FactoryConfigurationError { diff -r aa989c5a0265 -r cb2719d70590 jaxp/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java --- a/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java Thu Jul 13 19:34:30 2017 +0000 +++ b/jaxp/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java Mon Jul 17 14:40:00 2017 -0700 @@ -189,10 +189,6 @@ *

* Once an application has obtained a reference to a XMLOutputFactory it * can use the factory to configure and obtain stream instances. - *

- * Note that this is a new method that replaces the deprecated newInstance() method. - * No changes in behavior are defined by this replacement method relative to the - * deprecated method. * * @throws FactoryConfigurationError in case of {@linkplain * java.util.ServiceConfigurationError service configuration error} or if