From b8852f65a0adcb9ee5693bb6727a0668aa9808bf Mon Sep 17 00:00:00 2001 From: Justin Lu Date: Mon, 9 Jan 2023 21:24:40 +0000 Subject: [PATCH] 8299502: Usage of constructors of primitive wrapper classes should be avoided in javax.xml API docs Reviewed-by: joehw, naoto, lancea --- .../share/classes/javax/xml/stream/XMLOutputFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java b/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java index 6fd668bb3be..161249a8550 100644 --- a/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java +++ b/src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2023, 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 @@ -56,7 +56,7 @@ import javax.xml.transform.Result; *

The following paragraphs describe the namespace and prefix repair algorithm: * *

The property can be set with the following code line: - * {@code setProperty("javax.xml.stream.isRepairingNamespaces", new Boolean(true|false));} + * {@code setProperty("javax.xml.stream.isRepairingNamespaces", Boolean.TRUE);} * *

This property specifies that the writer default namespace prefix declarations. * The default value is false.