--- a/jdk/src/share/classes/java/text/AttributedCharacterIterator.java Thu May 24 10:20:28 2012 -0400
+++ b/jdk/src/share/classes/java/text/AttributedCharacterIterator.java Thu May 24 19:00:16 2012 -0700
@@ -97,7 +97,7 @@
private String name;
// table of all instances in this class, used by readResolve
- private static final Map instanceMap = new HashMap(7);
+ private static final Map<String, Attribute> instanceMap = new HashMap<>(7);
/**
* Constructs an {@code Attribute} with the given name.
@@ -150,7 +150,7 @@
throw new InvalidObjectException("subclass didn't correctly implement readResolve");
}
- Attribute instance = (Attribute) instanceMap.get(getName());
+ Attribute instance = instanceMap.get(getName());
if (instance != null) {
return instance;
} else {