Skip to content

Commit 2affd9c

Browse files
committed
Make comments a bit clearer.
1 parent 2b1a0b9 commit 2affd9c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/mchange/v2/naming/ReferenceableUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public final class ReferenceableUtils
3131
// Semantically, it does not mean empty set (which would imply nothing passes the white list),
3232
// but it means NO WHITELIST, any factoryClassName is accepted.
3333
//
34-
// It is and must be tested by reference equality, not semantic equality
34+
// It is and must be tested by reference identity, not semantic equality
3535
public final static Set ALL_FACTORY_CLASS_NAMES = Collections.unmodifiableSet(new HashSet());
3636

3737
/**
@@ -99,7 +99,7 @@ public static Object referenceToObject( Reference ref, Name name, Context nameCt
9999
"which employs certain conventions to dereference with an unspecified factoryClassName. Reference: " + ref
100100
);
101101

102-
// note that the use of a reference rather than semantic equality test against token ALL_FACTORY_CLASS_NAMES is essential!
102+
// note that the test of reference identity, rather than semantic equality, against token ALL_FACTORY_CLASS_NAMES is essential!
103103
if (allowedFactoryClassNames != ALL_FACTORY_CLASS_NAMES && !allowedFactoryClassNames.contains(fClassName))
104104
throw new NamingException(
105105
"factoryClassName '" + fClassName + "' is not in allowedFactoryClassNames [" + IterableUtils.joinAsString(",",allowedFactoryClassNames) + "]"

0 commit comments

Comments
 (0)