Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom')
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/CompilationUnit.java10
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMCompilationUnit.java10
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java10
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMImport.java12
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMInitializer.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMember.java2
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMethod.java26
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java22
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMPackage.java6
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java22
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/SimpleDOMBuilder.java2
11 files changed, 64 insertions, 64 deletions
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/CompilationUnit.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/CompilationUnit.java
index b7454d9e55..4b6b41e6bd 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/CompilationUnit.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/CompilationUnit.java
@@ -22,11 +22,11 @@ public CompilationUnit(char[] contents, char[] filename) {
fFileName = filename;
String file = new String(filename);
- int start = file.lastIndexOf("/"/*nonNLS*/) + 1;
- if (start == 0 || start < file.lastIndexOf("\\"/*nonNLS*/))
- start = file.lastIndexOf("\\"/*nonNLS*/) + 1;
+ int start = file.lastIndexOf("/") + 1; //$NON-NLS-1$
+ if (start == 0 || start < file.lastIndexOf("\\")) //$NON-NLS-1$
+ start = file.lastIndexOf("\\") + 1; //$NON-NLS-1$
- int end = file.lastIndexOf("."/*nonNLS*/);
+ int end = file.lastIndexOf("."); //$NON-NLS-1$
if (end == -1)
end = file.length();
@@ -42,6 +42,6 @@ public char[] getMainTypeName() {
return fMainTypeName;
}
public String toString() {
- return "CompilationUnit["/*nonNLS*/ + new String(fFileName) + "]"/*nonNLS*/;
+ return "CompilationUnit[" + new String(fFileName) + "]"; //$NON-NLS-2$ //$NON-NLS-1$
}
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMCompilationUnit.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMCompilationUnit.java
index 421510efea..e7da005cdf 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMCompilationUnit.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMCompilationUnit.java
@@ -33,7 +33,7 @@ class DOMCompilationUnit extends DOMNode implements IDOMCompilationUnit {
* Creates a new empty COMPILATION_UNIT document fragment.
*/
DOMCompilationUnit() {
- fHeader=""/*nonNLS*/;
+ fHeader=""; //$NON-NLS-1$
}
/**
* Creates a new COMPILATION_UNIT on the given range of the document.
@@ -47,7 +47,7 @@ DOMCompilationUnit() {
*/
DOMCompilationUnit(char[] document, int[] sourceRange) {
super(document, sourceRange, null, new int[]{-1, -1});
- fHeader = ""/*nonNLS*/;
+ fHeader = ""; //$NON-NLS-1$
}
/**
* @see DOMNode#appendContents(CharArrayBuffer)
@@ -75,7 +75,7 @@ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentEx
if (parent.getElementType() == IJavaElement.PACKAGE_FRAGMENT) {
return ((IPackageFragment)parent).getCompilationUnit(getName());
} else {
- throw new IllegalArgumentException(Util.bind("element.illegalParent"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.illegalParent")); //$NON-NLS-1$
}
}
/**
@@ -102,7 +102,7 @@ public String getName() {
topLevelType= firstType;
}
if (topLevelType != null) {
- return topLevelType.getName() + ".java"/*nonNLS*/;
+ return topLevelType.getName() + ".java"; //$NON-NLS-1$
} else {
return null;
}
@@ -174,6 +174,6 @@ protected void shareContents(DOMNode node) {
* @see IDOMNode#toString()
*/
public String toString() {
- return "COMPILATION_UNIT: "/*nonNLS*/ + getName();
+ return "COMPILATION_UNIT: " + getName(); //$NON-NLS-1$
}
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java
index e9d22f5c3a..d6e1b1a010 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java
@@ -229,7 +229,7 @@ protected void becomeDetailed() throws DOMException {
DOMBuilder builder = new DOMBuilder();
IDOMField[] details= builder.createFields(source.toCharArray());
if (details.length == 0) {
- throw new DOMException(Util.bind("dom.cannotDetail"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.cannotDetail")); //$NON-NLS-1$
} else {
node= this;
for (int i= 0; i < details.length; i++) {
@@ -316,7 +316,7 @@ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentEx
if (parent.getElementType() == IJavaElement.TYPE) {
return ((IType)parent).getField(getName());
} else {
- throw new IllegalArgumentException(Util.bind("element.illegalParent"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.illegalParent")); //$NON-NLS-1$
}
}
/**
@@ -561,7 +561,7 @@ protected void setIsVariableDeclarator(boolean isVariableDeclarator) {
*/
public void setName(String name) throws IllegalArgumentException {
if (name == null) {
- throw new IllegalArgumentException(Util.bind("element.nullName"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.nullName")); //$NON-NLS-1$
} else {
super.setName(name);
setTypeAltered(true);
@@ -572,7 +572,7 @@ public void setName(String name) throws IllegalArgumentException {
*/
public void setType(String typeName) throws IllegalArgumentException {
if (typeName == null) {
- throw new IllegalArgumentException(Util.bind("element.nullType"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.nullType")); //$NON-NLS-1$
}
becomeDetailed();
expand();
@@ -603,6 +603,6 @@ protected void shareContents(DOMNode node) {
* @see IDOMNode#toString()
*/
public String toString() {
- return "FIELD: "/*nonNLS*/ + getName();
+ return "FIELD: " + getName(); //$NON-NLS-1$
}
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMImport.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMImport.java
index 5a9baf69fb..a966e74095 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMImport.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMImport.java
@@ -27,7 +27,7 @@ class DOMImport extends DOMNode implements IDOMImport {
* Creates a new empty IMPORT node.
*/
DOMImport() {
- fName = "java.lang.*"/*nonNLS*/;
+ fName = "java.lang.*"; //$NON-NLS-1$
setMask(MASK_DETAILED_SOURCE_INDEXES, true);
}
/**
@@ -78,7 +78,7 @@ DOMImport(char[] document, int[] sourceRange, String name, boolean onDemand) {
protected void appendFragmentedContents(CharArrayBuffer buffer) {
if (fNameRange[0] < 0) {
buffer
- .append("import "/*nonNLS*/)
+ .append("import ") //$NON-NLS-1$
.append(fName)
.append(';')
.append(JavaModelManager.LINE_SEPARATOR);
@@ -112,7 +112,7 @@ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentEx
if (parent.getElementType() == IJavaElement.COMPILATION_UNIT) {
return ((ICompilationUnit)parent).getImport(getName());
} else {
- throw new IllegalArgumentException(Util.bind("element.illegalParent"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.illegalParent")); //$NON-NLS-1$
}
}
/**
@@ -138,16 +138,16 @@ protected DOMNode newDOMNode() {
*/
public void setName(String name) {
if (name == null) {
- throw new IllegalArgumentException(Util.bind("element.nullName"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.nullName")); //$NON-NLS-1$
}
becomeDetailed();
super.setName(name);
- fOnDemand = name.endsWith(".*"/*nonNLS*/);
+ fOnDemand = name.endsWith(".*"); //$NON-NLS-1$
}
/**
* @see IDOMNode#toString()
*/
public String toString() {
- return "IMPORT: "/*nonNLS*/ + getName();
+ return "IMPORT: " + getName(); //$NON-NLS-1$
}
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMInitializer.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMInitializer.java
index 0a1e6a2a44..86a735a075 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMInitializer.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMInitializer.java
@@ -102,7 +102,7 @@ protected void appendMemberBodyContents(CharArrayBuffer buffer) {
.append(getBody())
.append(fDocument, fBodyRange[1] + 1, fSourceRange[1] - fBodyRange[1]);
} else {
- buffer.append("{}"/*nonNLS*/).append(JavaModelManager.LINE_SEPARATOR);
+ buffer.append("{}").append(JavaModelManager.LINE_SEPARATOR); //$NON-NLS-1$
}
}
/**
@@ -156,7 +156,7 @@ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentEx
}
return ((IType) parent).getInitializer(count);
} else {
- throw new IllegalArgumentException(Util.bind("element.illegalParent"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.illegalParent")); //$NON-NLS-1$
}
}
/**
@@ -219,6 +219,6 @@ protected void shareContents(DOMNode node) {
* @see IDOMNode#toString()
*/
public String toString() {
- return "INITIALIZER"/*nonNLS*/;
+ return "INITIALIZER"; //$NON-NLS-1$
}
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMember.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMember.java
index 76e25ee0b8..09596aecc7 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMember.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMember.java
@@ -281,7 +281,7 @@ public void setComment(String comment) {
/* see 1FVIJAH */
if (comment != null) {
String commentString = new String(comment);
- if (commentString.indexOf("@deprecated"/*nonNLS*/) >= 0) {
+ if (commentString.indexOf("@deprecated") >= 0) { //$NON-NLS-1$
fFlags= fFlags | IConstants.AccDeprecated;
return;
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMethod.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMethod.java
index 921ef4cf5a..59c20e4f61 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMethod.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMethod.java
@@ -226,7 +226,7 @@ DOMMethod(char[] document, int[] sourceRange, String name, int[] nameRange, int
*/
public void addException(String name) throws IllegalArgumentException {
if (name == null) {
- throw new IllegalArgumentException(Util.bind("dom.nullExceptionType"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.nullExceptionType")); //$NON-NLS-1$
}
if (fExceptions == null) {
fExceptions= new String[1];
@@ -241,10 +241,10 @@ public void addException(String name) throws IllegalArgumentException {
*/
public void addParameter(String type, String name) throws IllegalArgumentException {
if (type == null) {
- throw new IllegalArgumentException(Util.bind("dom.nullTypeParameter"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.nullTypeParameter")); //$NON-NLS-1$
}
if (name == null) {
- throw new IllegalArgumentException(Util.bind("dom.nullNameParameter"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.nullNameParameter")); //$NON-NLS-1$
}
if (fParameterNames == null) {
fParameterNames= new String[1];
@@ -306,7 +306,7 @@ protected void appendMemberDeclarationContents(CharArrayBuffer buffer) {
if (fExceptionRange[0] >= 0) {
buffer.append(fDocument, start, fExceptionRange[0] - start);
} else {
- buffer.append(" throws "/*nonNLS*/);
+ buffer.append(" throws "); //$NON-NLS-1$
}
// add exception list
if (fExceptionList != null) {
@@ -414,7 +414,7 @@ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentEx
}
return ((IType)parent).getMethod(name, sigs);
} else {
- throw new IllegalArgumentException(Util.bind("element.illegalParent"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.illegalParent")); //$NON-NLS-1$
}
}
/**
@@ -573,7 +573,7 @@ public void setBody(String body) {
fBody= body;
setHasBody(body != null);
if (!hasBody()) {
- fBody= ";"/*nonNLS*/+JavaModelManager.LINE_SEPARATOR;
+ fBody= ";"+JavaModelManager.LINE_SEPARATOR; //$NON-NLS-1$
}
}
/**
@@ -615,7 +615,7 @@ public void setExceptions(String[] names) {
*/
public void setName(String name) {
if (name == null) {
- throw new IllegalArgumentException(Util.bind("element.nullName"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.nullName")); //$NON-NLS-1$
} else {
super.setName(name);
}
@@ -631,17 +631,17 @@ public void setParameters(String[] types, String[] names) throws IllegalArgument
fParameterNames= null;
fParameterList= new char[] {'(',')'};
} else {
- throw new IllegalArgumentException(Util.bind("dom.mismatchArgNamesAndTypes"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.mismatchArgNamesAndTypes")); //$NON-NLS-1$
}
} else if (names.length != types.length) {
- throw new IllegalArgumentException(Util.bind("dom.mismatchArgNamesAndTypes"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.mismatchArgNamesAndTypes")); //$NON-NLS-1$
} else if (names.length == 0) {
setParameters(null, null);
} else {
fParameterNames= names;
fParameterTypes= types;
CharArrayBuffer parametersBuffer = new CharArrayBuffer();
- parametersBuffer.append("("/*nonNLS*/);
+ parametersBuffer.append("("); //$NON-NLS-1$
char[] comma = new char[] {',', ' '};
for (int i = 0; i < names.length; i++) {
if (i > 0) {
@@ -662,7 +662,7 @@ public void setParameters(String[] types, String[] names) throws IllegalArgument
*/
public void setReturnType(String name) throws IllegalArgumentException {
if (name == null) {
- throw new IllegalArgumentException(Util.bind("dom.nullReturnType"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.nullReturnType")); //$NON-NLS-1$
}
becomeDetailed();
fragment();
@@ -705,9 +705,9 @@ protected void shareContents(DOMNode node) {
*/
public String toString() {
if (isConstructor()) {
- return "CONSTRUCTOR"/*nonNLS*/;
+ return "CONSTRUCTOR"; //$NON-NLS-1$
} else {
- return "METHOD: "/*nonNLS*/ + getName();
+ return "METHOD: " + getName(); //$NON-NLS-1$
}
}
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java
index 660f13c795..aa6ca79618 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java
@@ -331,23 +331,23 @@ protected abstract void appendFragmentedContents(CharArrayBuffer buffer);
void basicAddChild(IDOMNode child) throws IllegalArgumentException, DOMException {
// verify child may be added
if (!canHaveChildren()) {
- throw new DOMException(Util.bind("dom.unableAddChild"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.unableAddChild")); //$NON-NLS-1$
}
if (child == null) {
- throw new IllegalArgumentException(Util.bind("dom.addNullChild"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.addNullChild")); //$NON-NLS-1$
}
if (!isAllowableChild(child)) {
- throw new DOMException(Util.bind("dom.addIncompatibleChild"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.addIncompatibleChild")); //$NON-NLS-1$
}
if (child.getParent() != null) {
- throw new DOMException(Util.bind("dom.addChildWithParent"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.addChildWithParent")); //$NON-NLS-1$
}
/* NOTE: To test if the child is an ancestor of this node, we
* need only test if the root of this node is the child (the child
* is already a root since we have just guarenteed it has no parent).
*/
if (child == getRoot()) {
- throw new DOMException(Util.bind("dom.addAncestorAsChild"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.addAncestorAsChild")); //$NON-NLS-1$
}
DOMNode node= (DOMNode)child;
@@ -379,7 +379,7 @@ protected void becomeDetailed() throws DOMException {
if (!isDetailed()) {
DOMNode detailed= getDetailedNode();
if (detailed == null) {
- throw new DOMException(Util.bind("dom.cannotDetail"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.cannotDetail")); //$NON-NLS-1$
}
if (detailed != this) {
shareContents(detailed);
@@ -652,23 +652,23 @@ public int getStartPosition() {
public void insertSibling(IDOMNode sibling) throws IllegalArgumentException, DOMException {
// verify sibling may be added
if (sibling == null) {
- throw new IllegalArgumentException(Util.bind("dom.addNullSibling"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.addNullSibling")); //$NON-NLS-1$
}
if (fParent == null) {
- throw new DOMException(Util.bind("dom.addSiblingBeforeRoot"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.addSiblingBeforeRoot")); //$NON-NLS-1$
}
if (!fParent.isAllowableChild(sibling)) {
- throw new DOMException(Util.bind("dom.addIncompatibleSibling"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.addIncompatibleSibling")); //$NON-NLS-1$
}
if (sibling.getParent() != null) {
- throw new DOMException(Util.bind("dom.addSiblingWithParent"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.addSiblingWithParent")); //$NON-NLS-1$
}
/* NOTE: To test if the sibling is an ancestor of this node, we
* need only test if the root of this node is the child (the sibling
* is already a root since we have just guaranteed it has no parent).
*/
if (sibling == getRoot()) {
- throw new DOMException(Util.bind("dom.addAncestorAsSibling"/*nonNLS*/));
+ throw new DOMException(Util.bind("dom.addAncestorAsSibling")); //$NON-NLS-1$
}
DOMNode node= (DOMNode)sibling;
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMPackage.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMPackage.java
index dec2d57e07..87c7be8865 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMPackage.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMPackage.java
@@ -70,7 +70,7 @@ DOMPackage(char[] document, int[] sourceRange, String name, int[] nameRange) {
protected void appendFragmentedContents(CharArrayBuffer buffer) {
if (fNameRange[0] < 0) {
buffer
- .append("package "/*nonNLS*/)
+ .append("package ") //$NON-NLS-1$
.append(fName)
.append(';')
.append(JavaModelManager.LINE_SEPARATOR);
@@ -104,7 +104,7 @@ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentEx
if (parent.getElementType() == IJavaElement.COMPILATION_UNIT) {
return ((ICompilationUnit)parent).getPackageDeclaration(getName());
} else {
- throw new IllegalArgumentException(Util.bind("element.illegalParent"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.illegalParent")); //$NON-NLS-1$
}
}
/**
@@ -130,6 +130,6 @@ public void setName(String name) {
* @see IDOMNode#toString()
*/
public String toString() {
- return "PACKAGE: "/*nonNLS*/ + getName();
+ return "PACKAGE: " + getName(); //$NON-NLS-1$
}
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java
index f1132242f7..320560e948 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java
@@ -226,7 +226,7 @@ DOMType(char[] document, int[] sourceRange, String name, int[] nameRange, int fl
*/
public void addSuperInterface(String name) throws IllegalArgumentException {
if (name == null) {
- throw new IllegalArgumentException(Util.bind("dom.addNullInterface"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.addNullInterface")); //$NON-NLS-1$
}
if (fSuperInterfaces == null) {
fSuperInterfaces= new String[1];
@@ -264,7 +264,7 @@ protected void appendMemberDeclarationContents(CharArrayBuffer buffer) {
if (getMask(MASK_TYPE_HAS_SUPERCLASS)) {
hasSuperclass = true;
if (fExtendsRange[0] < 0) {
- buffer.append(" extends "/*nonNLS*/);
+ buffer.append(" extends "); //$NON-NLS-1$
} else {
buffer.append(fDocument, fExtendsRange[0], fExtendsRange[1] + 1 - fExtendsRange[0]);
}
@@ -277,7 +277,7 @@ protected void appendMemberDeclarationContents(CharArrayBuffer buffer) {
if (getMask(MASK_TYPE_HAS_INTERFACES)) {
hasInterfaces = true;
if (fImplementsRange[0] < 0) {
- buffer.append(" implements "/*nonNLS*/);
+ buffer.append(" implements "); //$NON-NLS-1$
} else {
buffer.append(fDocument, fImplementsRange[0], fImplementsRange[1] + 1 - fImplementsRange[0]);
}
@@ -307,7 +307,7 @@ protected void appendMemberDeclarationContents(CharArrayBuffer buffer) {
} else {
if (getMask(MASK_TYPE_HAS_INTERFACES)) {
if (fExtendsRange[0] < 0) {
- buffer.append(" extends "/*nonNLS*/);
+ buffer.append(" extends "); //$NON-NLS-1$
} else {
buffer.append(fDocument, fExtendsRange[0], fExtendsRange[1] + 1 - fExtendsRange[0]);
}
@@ -377,7 +377,7 @@ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentEx
} else if (parent.getElementType() == IJavaElement.COMPILATION_UNIT) {
return ((ICompilationUnit)parent).getType(getName());
} else {
- throw new IllegalArgumentException(Util.bind("element.illegalParent"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.illegalParent")); //$NON-NLS-1$
}
}
/**
@@ -527,9 +527,9 @@ public void setClass(boolean b) {
fragment();
setMask(MASK_TYPE_IS_CLASS, b);
if (b) {
- fTypeKeyword= "class"/*nonNLS*/;
+ fTypeKeyword= "class"; //$NON-NLS-1$
} else {
- fTypeKeyword= "interface"/*nonNLS*/;
+ fTypeKeyword= "interface"; //$NON-NLS-1$
setSuperclass(null);
}
}
@@ -556,7 +556,7 @@ void setCloseBodyRangeStart(int start) {
*/
public void setName(String name) throws IllegalArgumentException {
if (name == null) {
- throw new IllegalArgumentException(Util.bind("element.nullName"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("element.nullName")); //$NON-NLS-1$
}
super.setName(name);
Enumeration children= getChildren();
@@ -588,7 +588,7 @@ public void setSuperclass(String superclassName) {
public void setSuperInterfaces(String[] names) {
becomeDetailed();
if (names == null) {
- throw new IllegalArgumentException(Util.bind("dom.nullInterfaces"/*nonNLS*/));
+ throw new IllegalArgumentException(Util.bind("dom.nullInterfaces")); //$NON-NLS-1$
}
fragment();
fSuperInterfaces= names;
@@ -601,7 +601,7 @@ public void setSuperInterfaces(String[] names) {
CharArrayBuffer buffer = new CharArrayBuffer();
for (int i = 0; i < names.length; i++) {
if (i > 0) {
- buffer.append(", "/*nonNLS*/);
+ buffer.append(", "); //$NON-NLS-1$
}
buffer.append(names[i]);
}
@@ -636,6 +636,6 @@ protected void shareContents(DOMNode node) {
* @see IDOMNode#toString()
*/
public String toString() {
- return "TYPE: "/*nonNLS*/ + getName();
+ return "TYPE: " + getName(); //$NON-NLS-1$
}
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/SimpleDOMBuilder.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/SimpleDOMBuilder.java
index 49830eb364..214c053afe 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/SimpleDOMBuilder.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/SimpleDOMBuilder.java
@@ -27,7 +27,7 @@ public void acceptImport(int declarationStart, int declarationEnd, char[] name,
String importName = new String(name);
/** name is set to contain the '*' */
if (onDemand) {
- importName+=".*"/*nonNLS*/;
+ importName+=".*"; //$NON-NLS-1$
}
fNode= new DOMImport(fDocument, sourceRange, importName, onDemand);
addChild(fNode);

Back to the top