1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-27 19:05:38 +02:00

Use JDK 1.3 methods.

This commit is contained in:
Alain Magloire 2003-11-20 16:09:50 +00:00
parent fcfd56c2af
commit a89c6eff1e

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();