some netbeans inspection fixes

This commit is contained in:
honfika@gmail.com
2015-08-11 14:40:56 +02:00
parent 80bf0556fd
commit 427e7ea70d
11 changed files with 26 additions and 21 deletions

View File

@@ -411,7 +411,6 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
long highlightOffset = h.getProperties().offset;
List<AVM2Instruction> list = abc.bodies.get(bi).getCode().code;
AVM2Instruction lastIns = null;
long inspos = 0;
AVM2Instruction selIns = null;
for (AVM2Instruction ins : list) {
if (highlightOffset == ins.getOffset()) {
@@ -419,13 +418,13 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
break;
}
if (ins.getOffset() > highlightOffset) {
inspos = highlightOffset - lastIns.offset;
selIns = lastIns;
break;
}
lastIns = ins;
}
if (selIns != null) {
//long inspos = highlightOffset - selIns.offset;
if (!codeOnly && ((selIns.definition instanceof ConstructSuperIns) || (selIns.definition instanceof CallSuperIns) || (selIns.definition instanceof CallSuperVoidIns))) {
Highlighting tc = Highlighting.searchPos(classHighlights, pos);
if (tc != null) {