mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
Revert "[Xtext] fixed 363914 - Check that you cannot append a null segment to a"
This reverts commit b74a06f705a9a0750289e2152d49941f4727e756.
This commit is contained in:
parent
44a7263f3e
commit
f9e533097c
2 changed files with 0 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue