mergeModifiers: Merge the right modifiers for innerclasses attributes.

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1250 379699f6-c40d-0410-875b-85095c16579e
master
hoenicke 25 years ago
parent f85c46fd44
commit b99c87a98d
  1. 4
      jode/jode/bytecode/ClassInfo.java

@ -387,13 +387,13 @@ public final class ClassInfo extends BinaryInfo implements Comparable {
int oldSimple = javaModifiersToBytecode(modifiers); int oldSimple = javaModifiersToBytecode(modifiers);
if (((oldSimple ^ newModifiers) & ~0x20) == 0) { if (((oldSimple ^ newModifiers) & ~0x20) == 0) {
modifiers = newModifiers | (modifiers & 0x20); modifiers |= newModifiers & 0x20;
return; return;
} }
int newSimple = javaModifiersToBytecode(newModifiers); int newSimple = javaModifiersToBytecode(newModifiers);
if (((newSimple ^ modifiers) & ~0x20) == 0) { if (((newSimple ^ modifiers) & ~0x20) == 0) {
modifiers |= newModifiers & 0x20; modifiers = newModifiers | (modifiers & 0x20);
return; return;
} }

Loading…
Cancel
Save