--- a/langtools/src/share/classes/com/sun/tools/javac/comp/TransTypes.java Wed Dec 18 19:22:58 2013 +0000
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/TransTypes.java Wed Dec 18 16:05:18 2013 -0500
@@ -51,8 +51,7 @@
*/
public class TransTypes extends TreeTranslator {
/** The context key for the TransTypes phase. */
- protected static final Context.Key<TransTypes> transTypesKey =
- new Context.Key<TransTypes>();
+ protected static final Context.Key<TransTypes> transTypesKey = new Context.Key<>();
/** Get the instance for this context. */
public static TransTypes instance(Context context) {
@@ -88,7 +87,7 @@
log = Log.instance(context);
syms = Symtab.instance(context);
enter = Enter.instance(context);
- overridden = new HashMap<MethodSymbol,MethodSymbol>();
+ overridden = new HashMap<>();
Source source = Source.instance(context);
allowEnums = source.allowEnums();
addBridges = source.addBridges();
@@ -1004,7 +1003,7 @@
super.visitClassDef(tree);
make.at(tree.pos);
if (addBridges) {
- ListBuffer<JCTree> bridges = new ListBuffer<JCTree>();
+ ListBuffer<JCTree> bridges = new ListBuffer<>();
if (false) //see CR: 6996415
bridges.appendList(addOverrideBridgesIfNeeded(tree, c));
if (allowInterfaceBridges || (tree.sym.flags() & INTERFACE) == 0) {