mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8299500: Usage of constructors of primitive wrapper classes should be avoided in java.text API docs
Reviewed-by: naoto, lancea
This commit is contained in:
parent
bfd5971429
commit
cd10c7278d
2 changed files with 7 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 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
|
||||
|
@ -108,7 +108,7 @@ import java.util.Arrays;
|
|||
* pattform.setFormats(testFormats);
|
||||
* Object[] testArgs = {null, "ADisk", null};
|
||||
* for (int i = 0; i < 4; ++i) {
|
||||
* testArgs[0] = new Integer(i);
|
||||
* testArgs[0] = Integer.valueOf(i);
|
||||
* testArgs[2] = testArgs[0];
|
||||
* System.out.println(pattform.format(testArgs));
|
||||
* }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue