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

Small cleanups in java.lang.ref

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • core-libs
    • None
    • b16

        ReferenceQueue has 3 fields that should be made final.

        Class Null doesn't need to be generic

        - private static class Null<S> extends ReferenceQueue<S> {
        - boolean enqueue(Reference<? extends S> r) {
        + private static class Null extends ReferenceQueue<Object> {
        + boolean enqueue(Reference<?> r) {

        Reference fields are documented as being NULL, but they are actually null

        - /* When active: NULL
        + /* When active: null

              martin Martin Buchholz
              martin Martin Buchholz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: