# HG changeset patch # User smarks # Date 1375918176 25200 # Node ID d5febab8765d501b8eb9e0c369a962ffc506268c # Parent 6a5d89c89e007278b61cc2098c4f6832dca48d09 8022479: clean up warnings from sun.tools.asm Reviewed-by: lancea, darcy diff -r 6a5d89c89e00 -r d5febab8765d jdk/src/share/classes/sun/tools/asm/Assembler.java --- a/jdk/src/share/classes/sun/tools/asm/Assembler.java Wed Aug 07 12:13:34 2013 -0700 +++ b/jdk/src/share/classes/sun/tools/asm/Assembler.java Wed Aug 07 16:29:36 2013 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1994, 2003, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -91,9 +91,9 @@ add(new Instruction(where, opc, flagNoCovered)); } - static Vector SourceClassList = new Vector(); + static Vector SourceClassList = new Vector<>(); - static Vector TmpCovTable = new Vector(); + static Vector TmpCovTable = new Vector<>(); static int[] JcovClassCountArray = new int[CT_LAST_KIND + 1]; @@ -177,8 +177,8 @@ case opc_lookupswitch: { SwitchData sw = (SwitchData)inst.value; optimize(env, sw.defaultLabel); - for (Enumeration e = sw.tab.elements() ; e.hasMoreElements();) { - optimize(env, (Label)e.nextElement()); + for (Enumeration