private static final Collection<Class<?>> SINGLETON_CLASSES;
static {
- UNMODIFIABLE_COLLECTION_CLASS = Collections.unmodifiableCollection(new ArrayList<Object>()).getClass();
+ UNMODIFIABLE_COLLECTION_CLASS = Collections.unmodifiableCollection(new ArrayList<>()).getClass();
final Builder<Class<?>> b = ImmutableSet.builder();
b.add(Collections.singleton(null).getClass());
@Override
public String toString() {
- final StringBuffer sb = new StringBuffer("UnmodifiableCollection{");
- sb.append(delegate);
- return sb.toString();
+ return "UnmodifiableCollection{" + delegate + "}";
}
}