1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-21 15:23:59 +02:00

Only use JDK-1.3 methods.

This commit is contained in:
Alain Magloire 2003-11-20 16:17:31 +00:00
parent 21f66ca19b
commit 1267ab88f7

View file

@ -66,7 +66,7 @@ public class Binary extends Openable implements IBinary {
public boolean hasDebug() { public boolean hasDebug() {
if (isObject() || isExecutable() || isSharedLib()) { if (isObject() || isExecutable() || isSharedLib()) {
if (hasDebug == null || hasChanged()) { if (hasDebug == null || hasChanged()) {
hasDebug = Boolean.toString(((IBinaryObject)getBinaryFile()).hasDebug()); hasDebug = new Boolean(((IBinaryObject)getBinaryFile()).hasDebug()).toString();
} }
} }
return Boolean.valueOf(hasDebug).booleanValue(); return Boolean.valueOf(hasDebug).booleanValue();
@ -129,7 +129,7 @@ public class Binary extends Openable implements IBinary {
public boolean isLittleEndian() { public boolean isLittleEndian() {
if (isObject() || isExecutable() || isSharedLib() || isCore()) { if (isObject() || isExecutable() || isSharedLib() || isCore()) {
if (endian == null || hasChanged()) { if (endian == null || hasChanged()) {
endian = Boolean.toString(((IBinaryObject)getBinaryFile()).isLittleEndian()); endian = new Boolean(((IBinaryObject)getBinaryFile()).isLittleEndian()).toString();
} }
} }
return Boolean.valueOf(endian).booleanValue(); return Boolean.valueOf(endian).booleanValue();