diff graal/com.oracle.max.asmdis/src/com/sun/max/asm/gen/cisc/x86/X86AssemblyTester.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.asmdis/src/com/sun/max/asm/gen/cisc/x86/X86AssemblyTester.java	Sun Dec 18 05:23:52 2011 +0100
+++ b/graal/com.oracle.max.asmdis/src/com/sun/max/asm/gen/cisc/x86/X86AssemblyTester.java	Sun Dec 18 05:24:06 2011 +0100
@@ -47,7 +47,7 @@
         return Utils.cast(type, super.assembly());
     }
 
-    private String getSibIndexAndScale(Queue<X86Operand> operands, Queue<Argument> arguments) {
+    private static String getSibIndexAndScale(Queue<X86Operand> operands, Queue<Argument> arguments) {
         X86Parameter parameter = (X86Parameter) operands.remove();
         assert parameter.place() == ParameterPlace.SIB_INDEX || parameter.place() == ParameterPlace.SIB_INDEX_REXX;
         final String result = arguments.remove().externalValue() + ",";
@@ -56,7 +56,7 @@
         return result + arguments.remove().externalValue() + ")";
     }
 
-    private String getOperand(X86Template template, Queue<X86Operand> operands, Queue<Argument> arguments, String label) {
+    private static String getOperand(X86Template template, Queue<X86Operand> operands, Queue<Argument> arguments, String label) {
         final X86Operand operand = operands.remove();
         if (operand instanceof ImplicitOperand) {
             final ImplicitOperand implicitOperand = (ImplicitOperand) operand;
@@ -129,8 +129,8 @@
         } else {
             stream.println(".code" + addressWidth().numberOfBits);
         }
-        final LinkedList<X86Operand> operandQueue = new LinkedList<X86Operand>(template.operands());
-        final LinkedList<Argument> argumentQueue = new LinkedList<Argument>(argumentList);
+        final LinkedList<X86Operand> operandQueue = new LinkedList<>(template.operands());
+        final LinkedList<Argument> argumentQueue = new LinkedList<>(argumentList);
         String first = "";
         if (!operandQueue.isEmpty()) {
             first = getOperand(template, operandQueue, argumentQueue, label);