< prev index next >
src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamReaderFactory.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2015, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -192,14 +192,15 @@
* This could be any {@link XMLStreamReader} implementation, not just
* the ones that were created from this factory. So the implementation
* of this class needs to be aware of that.
*/
public static void recycle(XMLStreamReader r) {
+ /* the XMLStreamReaderFactory recycle becomes expenisve in the threadLocal get operation.
get().doRecycle(r);
if (r instanceof RecycleAware) {
((RecycleAware)r).onRecycled();
- }
+ }*/
}
// implementations
public abstract XMLStreamReader doCreate(String systemId, InputStream in, boolean rejectDTDs);
< prev index next >