If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issues#2228 Prefer hexadecimal representation if context is masking bytes
Author:
ODAKAB
ODAKABDate created:
Type: feature
Visibility: Everybody
Assigned to:
Labels: Decompilation
State: closed 

Current Version: 19.1.2
I think it would be much more meaningful to see hexadecimal representation of 0xFF 0xFFFF
0x00FF etc. when it's next to mask operator as shown in attachment. Let me send a method
to save some hassle (switch case instead or chain for better performance):
static boolean isByteMask(int number) {
switch (number) {
case 0xFF:
case 0xFF00:
case 0xFFFF:
case 0xFF0000:
case 0xFF00FF:
case 0xFFFF00:
case 0xFFFFFF:
case 0xFF000000:
case 0xFF0000FF:
case 0xFF00FF00:
case 0xFF00FFFF:
case 0xFFFF0000:
case 0xFFFF00FF:
case 0xFFFFFF00:
return true;
}
return false;
}
example.jpg (52 KiB)In nightly 2824, bitwise and, or, xor and negation use hexadecimal representation of their
operands.
State: new→upgraded
State: upgraded→closed
