Mercurial > hg > graal-compiler
diff src/share/tools/ProjectCreator/Util.java @ 6801:1a9b9cfcef41
7163863: Updated projectcreator
Summary: Enable source browsing for all platform dependent code
Reviewed-by: brutisso, coleenp
author | neliasso |
---|---|
date | Thu, 29 Mar 2012 16:43:21 +0200 |
parents | 74e790c48cd4 |
children | b9a9ed0f8eeb |
line wrap: on
line diff
--- a/src/share/tools/ProjectCreator/Util.java Mon Sep 24 17:59:24 2012 -0700 +++ b/src/share/tools/ProjectCreator/Util.java Thu Mar 29 16:43:21 2012 +0200 @@ -26,18 +26,19 @@ import java.io.File; public class Util { - static String join(String padder, Vector v) { + + static String join(String padder, Vector<String> v) { return join(padder, v, false); } - static String join(String padder, Vector v, boolean quoted) { + static String join(String padder, Vector<String> v, boolean quoted) { StringBuffer sb = new StringBuffer(); - for (Iterator iter = v.iterator(); iter.hasNext(); ) { + for (Iterator<String> iter = v.iterator(); iter.hasNext(); ) { if (quoted) { sb.append('"'); } - sb.append((String)iter.next()); + sb.append(iter.next()); if (quoted) { sb.append('"'); } @@ -48,10 +49,10 @@ } - static String prefixed_join(String padder, Vector v, boolean quoted) { + static String prefixed_join(String padder, Vector<String> v, boolean quoted) { StringBuffer sb = new StringBuffer(); - for (Iterator iter = v.iterator(); iter.hasNext(); ) { + for (Iterator<String> iter = v.iterator(); iter.hasNext(); ) { sb.append(padder); if (quoted) {