changeset 51391:07ea887eee5f

8209382: [error-prone] HashtableContains in sun/rmi/server/ActivationGroupImpl.java Reviewed-by: rriggs
author iignatyev
date Mon, 13 Aug 2018 17:39:27 -0700
parents 135285dfc551
children 523f58763da6
files src/java.rmi/share/classes/sun/rmi/server/ActivationGroupImpl.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.rmi/share/classes/sun/rmi/server/ActivationGroupImpl.java	Mon Aug 13 18:21:26 2018 -0400
+++ b/src/java.rmi/share/classes/sun/rmi/server/ActivationGroupImpl.java	Mon Aug 13 17:39:27 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -444,7 +444,7 @@
                 if (groupInactive == true)
                     throw new ActivationException("group is inactive");
             }
-            if (!active.contains(id)) {
+            if (!active.containsKey(id)) {
                 ActiveEntry entry = new ActiveEntry(impl);
                 active.put(id, entry);
                 // created new entry, so inform monitor of active object