Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8301120

Cleanup utility classes java.util.Arrays and java.util.Collections

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • core-libs

      A number of minor cleanups could be done in Arrays and Collections utility classes.
      In Arrays:
      - Redundant import jdk.internal.misc.Unsafe;
      - C-style array declaration is used in public static boolean equals(short[] a, short a2[]) (that's the only place in the whole file)

      In Collections:
      - A few obsolete "unchecked" and "rawtypes" suppressions
      - Unnecessary local variable initializer in get() method
      - Raw type can be avoided in a number of casts
      - Explicit type parameters could be omitted or converted to diamonds
      - A couple of javadoc links on private APIs are malformed

            tvaleev Tagir Valeev
            tvaleev Tagir Valeev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: