From 103f1fa7bbeba3083de8a4e80c8801acf2cbebae Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Thu, 2 Sep 2004 19:17:42 +0000 Subject: [PATCH] Remove compiler warnings. --- .../org/eclipse/cdt/internal/core/model/Binary.java | 9 +++++---- .../eclipse/cdt/internal/core/model/TranslationUnit.java | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java index 78b6ed4c3bc..74a783dafac 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Binary.java @@ -18,6 +18,7 @@ import java.util.HashMap; import java.util.Map; import org.eclipse.cdt.core.IBinaryParser.IBinaryExecutable; +import org.eclipse.cdt.core.IBinaryParser.IBinaryFile; import org.eclipse.cdt.core.IBinaryParser.IBinaryObject; import org.eclipse.cdt.core.IBinaryParser.IBinaryShared; import org.eclipse.cdt.core.IBinaryParser.ISymbol; @@ -58,19 +59,19 @@ public class Binary extends Openable implements IBinary { } public boolean isSharedLib() { - return getType() == IBinaryObject.SHARED; + return getType() == IBinaryFile.SHARED; } public boolean isExecutable() { - return getType() == IBinaryObject.EXECUTABLE; + return getType() == IBinaryFile.EXECUTABLE; } public boolean isObject() { - return getType() == IBinaryObject.OBJECT; + return getType() == IBinaryFile.OBJECT; } public boolean isCore() { - return getType() == IBinaryObject.CORE; + return getType() == IBinaryFile.CORE; } public boolean hasDebug() { diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java index d189cd96c02..067e71b199e 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java @@ -104,7 +104,7 @@ public class TranslationUnit extends Openable implements ITranslationUnit { if (name == null || name.length() == 0) { return null; } - String[] names = name.split("::"); + String[] names = name.split("::"); //$NON-NLS-1$ ICElement current = this; for (int j = 0; j < names.length; ++j) { if (current instanceof IParent) {