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

[error-prone] HashtableContains in sun/rmi/server/ActivationGroupImpl.java

    Details

    • Subcomponent:
    • Resolved In Build:
      b07

      Description

      running error-prone on jdk/jdk found the following deffect in java.rmi module:
        
      src/java.rmi/share/classes/sun/rmi/server/ActivationGroupImpl.java:447: warning: [HashtableContains] contains() is a legacy method that is equivalent to containsValue(), but the argument type 'java.rmi.activation.ActivationID' looks like a key
                  if (!active.contains(id)) {
                                      ^
          (see https://errorprone.info/bugpattern/HashtableContains.md)
        Did you mean 'if (!active.containsKey(id)) {'?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                iignatyev Igor Ignatyev
                Reporter:
                iignatyev Igor Ignatyev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: