summaryrefslogtreecommitdiff
path: root/src/proguard/classfile/instruction/Instruction.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/proguard/classfile/instruction/Instruction.java')
-rw-r--r--src/proguard/classfile/instruction/Instruction.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/proguard/classfile/instruction/Instruction.java b/src/proguard/classfile/instruction/Instruction.java
index 8437495..33e705d 100644
--- a/src/proguard/classfile/instruction/Instruction.java
+++ b/src/proguard/classfile/instruction/Instruction.java
@@ -2,7 +2,7 @@
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
- * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu)
+ * Copyright (c) 2002-2013 Eric Lafortune (eric@graphics.cornell.edu)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
@@ -220,7 +220,7 @@ public abstract class Instruction
false, // invokespecial
false, // invokestatic
false, // invokeinterface
- false, // unused
+ false, // invokedynamic
false, // new
false, // newarray
false, // anewarray
@@ -429,7 +429,7 @@ public abstract class Instruction
1, // invokespecial
0, // invokestatic
1, // invokeinterface
- 0, // unused
+ 0, // invokedynamic
0, // new
1, // newarray
1, // anewarray
@@ -638,7 +638,7 @@ public abstract class Instruction
0, // invokespecial
0, // invokestatic
0, // invokeinterface
- 0, // unused
+ 0, // invokedynamic
1, // new
1, // newarray
1, // anewarray
@@ -887,7 +887,7 @@ public abstract class Instruction
protected static void writeSignedByte(byte[] code, int offset, int value)
{
- if (value << 24 >> 24 != value)
+ if ((byte)value != value)
{
throw new IllegalArgumentException("Signed byte value out of range ["+value+"]");
}
@@ -897,7 +897,7 @@ public abstract class Instruction
protected static void writeSignedShort(byte[] code, int offset, int value)
{
- if (value << 16 >> 16 != value)
+ if ((short)value != value)
{
throw new IllegalArgumentException("Signed short value out of range ["+value+"]");
}