removed some command hex values from character interpretation such as 0x00000000 and 0xFFFFFFFF.

This commit is contained in:
beard%netscape.com 2000-01-30 19:04:41 +00:00
parent 1b8d3a512b
commit 935e5216ba

View File

@ -378,13 +378,16 @@ public class leaksoup {
if (value.startsWith("0x")) {
try {
int hexValue = Integer.parseInt(value.substring(2), 16);
StringBuffer buffer = new StringBuffer(value);
buffer.append('\t');
appendChar(buffer, ((hexValue >>> 24) & 0x00FF));
appendChar(buffer, ((hexValue >>> 16) & 0x00FF));
appendChar(buffer, ((hexValue >>> 8) & 0x00FF));
appendChar(buffer, (hexValue & 0x00FF));
value = buffer.toString();
// don't interpret some common values, to save some space.
if (hexValue != 0 && hexValue != -1) {
StringBuffer buffer = new StringBuffer(value);
buffer.append('\t');
appendChar(buffer, ((hexValue >>> 24) & 0x00FF));
appendChar(buffer, ((hexValue >>> 16) & 0x00FF));
appendChar(buffer, ((hexValue >>> 8) & 0x00FF));
appendChar(buffer, (hexValue & 0x00FF));
value = buffer.toString();
}
} catch (NumberFormatException nfe) {
}
}