--- old/src/java.xml/share/classes/javax/xml/stream/XMLInputFactory.java 2016-12-15 10:06:50.566098991 -0800 +++ new/src/java.xml/share/classes/javax/xml/stream/XMLInputFactory.java 2016-12-15 10:06:50.430092192 -0800 @@ -1,4 +1,5 @@ /* + * Copyright (c) 2009, 2016, 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 @@ -22,10 +23,6 @@ * questions. */ -/* - * Copyright (c) 2009, 2013, by Oracle Corporation. All Rights Reserved. - */ - package javax.xml.stream; import com.sun.xml.internal.stream.XMLInputFactoryImpl; @@ -225,6 +222,7 @@ * java.util.ServiceConfigurationError service configuration error} or if * the implementation is not available or cannot be instantiated. */ + @Deprecated(since="7") public static XMLInputFactory newFactory() throws FactoryConfigurationError { @@ -246,6 +244,7 @@ * #newFactory(java.lang.String, java.lang.ClassLoader)} method * defines no changes in behavior. */ + @Deprecated(since="7") public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError {