diff --git a/src/main/java/org/ice4j/ice/ComponentSocket.java b/src/main/java/org/ice4j/ice/ComponentSocket.java index ae4c85f..117b725 100644 --- a/src/main/java/org/ice4j/ice/ComponentSocket.java +++ b/src/main/java/org/ice4j/ice/ComponentSocket.java @@ -52,9 +52,7 @@ public class ComponentSocket * from. These should be the addresses which we have confirmed (e.g. by * having received a STUN message with correct authentication fields). */ - private Set authorizedAddresses - = Collections.newSetFromMap( - new ConcurrentHashMap()); + private Set authorizedAddresses = new HashSet<>(); /** * The owning {@link Component}. @@ -110,9 +108,7 @@ public class ComponentSocket logger.info("Adding allowed address: " + address); - Set newSet - = Collections.newSetFromMap( - new ConcurrentHashMap()); + Set newSet = new HashSet<>(); newSet.addAll(authorizedAddresses); newSet.add(address);