Small cleanups in java.lang.ref

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: None
    • Component/s: 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

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

                Created:
                Updated:
                Resolved: