aboutsummaryrefslogtreecommitdiff
path: root/baksmali
diff options
context:
space:
mode:
authorJeff Smith <whydoubt@yahoo.com>2014-08-15 14:25:38 -0500
committerJeff Smith <whydoubt@yahoo.com>2014-08-15 14:25:38 -0500
commit9cc35b2d05c6d97cc753b9cc956ea93a8b176c19 (patch)
treecca6e3e0047297b7d6fc513836ce6550dd7d89b4 /baksmali
parent0b836342e21b4de21d1d452d5b43b54a364a35c6 (diff)
downloadsmali-9cc35b2d05c6d97cc753b9cc956ea93a8b176c19.tar.gz
No need to reevaluate 'resource != null'
Diffstat (limited to 'baksmali')
-rw-r--r--baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/InstructionMethodItem.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/InstructionMethodItem.java b/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/InstructionMethodItem.java
index 556e7c2c..cee478b6 100644
--- a/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/InstructionMethodItem.java
+++ b/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/InstructionMethodItem.java
@@ -495,8 +495,9 @@ public class InstructionMethodItem<T extends Instruction> extends MethodItem {
if (resource != null) {
writer.write(" # ");
writer.write(resource);
+ return true;
}
- return (resource != null);
+ return false;
}
protected void writeFieldOffset(IndentingWriter writer) throws IOException {