Added comments, fixed missing generics for java6 compilation

This commit is contained in:
nathan 2016-02-09 01:47:09 +01:00
parent 4686461bc7
commit d0fb78e129
2 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,10 @@ public enum References {
Undefined,
/**
* Strong references are faster than weak, as there are no extra steps necessary (to clean up the data structures) during
* mesasge publication.
*/
Strong,
/**

View File

@ -114,7 +114,7 @@ class ReflectionUtils {
public static
Iterator<Class<?>> getSuperTypes(Class<?> from) {
// This must be a 'set' because there can be duplicates, depending on the object hierarchy
final IdentityMap<Class<?>, Boolean> superclasses = new IdentityMap<>();
final IdentityMap<Class<?>, Boolean> superclasses = new IdentityMap<Class<?>, Boolean>();
collectInterfaces(from, superclasses);
while (!from.equals(Object.class) && !from.isInterface()) {