Clarify / correct comments.
Change-Id: I67861a0253a97a462be42cbd1b3c7ac02f8e5352
diff --git a/dx/src/com/android/dx/io/Opcodes.java b/dx/src/com/android/dx/io/Opcodes.java
index f79394c..9abfd8b 100644
--- a/dx/src/com/android/dx/io/Opcodes.java
+++ b/dx/src/com/android/dx/io/Opcodes.java
@@ -370,6 +370,10 @@
* @return {@code true} iff the opcode is an "extended" opcode
*/
public static boolean isExtended(int opcode) {
+ /*
+ * Note: Extended opcodes all have the form ((byteValue << 8)
+ * | 0xff).
+ */
return (opcode >= 0x00ff);
}
@@ -384,7 +388,7 @@
/*
* Note: This method bakes in knowledge that all opcodes are
* either single-byte or of the forms (byteValue << 8) or
- * ((byteValue << 8) 0xff).
+ * ((byteValue << 8) | 0xff).
*/
int lowByte = opcodeUnit & 0xff;