Revert "[Xtext] fixed 363914 - Check that you cannot append a null segment to a"

This reverts commit b74a06f705a9a0750289e2152d49941f4727e756.
This commit is contained in:
Moritz Eysholdt 2011-12-01 13:09:25 +01:00
parent 44a7263f3e
commit f9e533097c
2 changed files with 0 additions and 10 deletions

View file

@ -95,9 +95,6 @@ public class QualifiedName implements Comparable<QualifiedName> {
}
public QualifiedName append(String segment) {
if (segment == null) {
throw new IllegalArgumentException("Segment cannot be null");
}
String[] newSegments = new String[getSegmentCount() + 1];
System.arraycopy(segments, 0, newSegments, 0, segments.length);
newSegments[segments.length] = segment;

View file

@ -25,13 +25,6 @@ public class QualifiedNameTest extends TestCase {
fail("Exception expected");
} catch(IllegalArgumentException e) {}
}
public void testAppendNull() {
try {
QualifiedName.create().append((String) null);
fail("Exception expected");
} catch (IllegalArgumentException e) {}
}
public void testSegments() {
QualifiedName qn = QualifiedName.create("foo", "bar", "baz");