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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b07
    • Verification:
      Not verified

      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 (Inactive)
              Reporter:
              iignatyev Igor Ignatyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: