Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.max.cri/src/com/sun/cri/ci/CiUtil.java @ 4142:bc8527f3071c
Adjust code base to new level of warnings.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 18 Dec 2011 05:24:06 +0100 |
parents | e233f5660da4 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/sun/cri/ci/CiUtil.java Sun Dec 18 05:23:52 2011 +0100 +++ b/graal/com.oracle.max.cri/src/com/sun/cri/ci/CiUtil.java Sun Dec 18 05:24:06 2011 +0100 @@ -236,15 +236,6 @@ } } - // Stub so that there are fewer merging-related changes - // TODO remove - public static String format(String format, RiMethod method, boolean arg) throws IllegalFormatException { - return format(format, method); - } - public static String format(String format, RiField field, boolean arg) throws IllegalFormatException { - return format(format, field); - } - /** * Gets a string for a given method formatted according to a given format specification. A format specification is * composed of characters that are to be copied verbatim to the result and specifiers that denote an attribute of @@ -417,7 +408,8 @@ /** * Gets a stack trace element for a given method and bytecode index. */ - public static StackTraceElement toStackTraceElement(RiMethod method, int bci) { + public static StackTraceElement toStackTraceElement(RiMethod method, @SuppressWarnings("unused") int bci) { + // TODO(tw): Look if we can use bci to get the line number. return new StackTraceElement(CiUtil.toJavaName(method.holder()), method.name(), null, -1); } @@ -431,8 +423,6 @@ return "L" + className.replace('.', '/') + ";"; } - private static final Object[] NO_ARGUMENTS = {}; - /** * Creates a set that uses reference-equality instead of {@link Object#equals(Object)} * when comparing values. @@ -468,7 +458,7 @@ public static String tabulateValues(CiFrame frame) { int cols = Math.max(frame.numLocals, Math.max(frame.numStack, frame.numLocks)); assert cols > 0; - ArrayList<Object> cells = new ArrayList<Object>(); + ArrayList<Object> cells = new ArrayList<>(); cells.add(""); for (int i = 0; i < cols; i++) { cells.add(i);