Skip to content

Commit b8852f6

Browse files
justin-curtis-lunaotoj
authored andcommitted
8299502: Usage of constructors of primitive wrapper classes should be avoided in javax.xml API docs
Reviewed-by: joehw, naoto, lancea
1 parent 679e485 commit b8852f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2009, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -56,7 +56,7 @@
5656
* <p>The following paragraphs describe the namespace and prefix repair algorithm:
5757
*
5858
* <p>The property can be set with the following code line:
59-
* {@code setProperty("javax.xml.stream.isRepairingNamespaces", new Boolean(true|false));}
59+
* {@code setProperty("javax.xml.stream.isRepairingNamespaces", Boolean.TRUE);}
6060
*
6161
* <p>This property specifies that the writer default namespace prefix declarations.
6262
* The default value is false.

0 commit comments

Comments
 (0)