Change the type of the "args" parameter in the CannedFormattedString class from 
`Object[]` to `List<Object>`. Add unit tests. 
Move unrelated methods from CannedFormattedString to the CannedArgument class.
Others are follow-up changes.

-------------

Commit messages:
 - CannedFormattedString: move some methods to the CannedArgument class
 - CannedFormattedString: change type of the "args" property from Object[] to 
List<Object> and fix addPrefix() to make the default 
CannedFormattedString#equals() work correctly; add unit tests; 
JPackageStringBundle: use the same fomatter to make 
CannedFormattedString#equals() work correctly

Changes: https://git.openjdk.org/jdk/pull/30084/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30084&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8379432
  Stats: 252 lines in 8 files changed: 206 ins; 34 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/30084.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30084/head:pull/30084

PR: https://git.openjdk.org/jdk/pull/30084

Reply via email to