Skip to content

Commit 5c67180

Browse files
committed
Remove Java 5 guard in o.e.ant.tests.ui
Tests are Java 21 now to this is always true.
1 parent 805f9b4 commit 5c67180

File tree

2 files changed

+5
-57
lines changed

2 files changed

+5
-57
lines changed

ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/AntEditorTests.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2004, 2012 IBM Corporation and others.
2+
* Copyright (c) 2004, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -24,7 +24,6 @@
2424
import org.eclipse.ant.internal.ui.editor.text.XMLTextHover;
2525
import org.eclipse.ant.tests.ui.editor.performance.EditorTestHelper;
2626
import org.eclipse.ant.tests.ui.testplugin.AbstractAntUITest;
27-
import org.eclipse.ant.tests.ui.testplugin.ProjectCreationDecorator;
2827
import org.eclipse.core.resources.IFile;
2928
import org.eclipse.jface.text.BadLocationException;
3029
import org.eclipse.jface.text.IDocument;
@@ -359,11 +358,10 @@ public void testOpenImportViaClasspath() throws PartInitException {
359358
*/
360359
@Test
361360
public void testOpenImportWithByteOrderMark() throws PartInitException {
362-
if (ProjectCreationDecorator.isJ2SE15Compatible()) {
363-
IFile file = getIFile("importWithByteOrderMark.xml"); //$NON-NLS-1$
364-
AntEditor editor = (AntEditor) EditorTestHelper.openInEditor(file, "org.eclipse.ant.ui.internal.editor.AntEditor", true); //$NON-NLS-1$
365-
assertNotNull("Should have imported target", editor.getAntModel().getTargetNode("build")); //$NON-NLS-1$ //$NON-NLS-2$
366-
}
361+
IFile file = getIFile("importWithByteOrderMark.xml"); //$NON-NLS-1$
362+
AntEditor editor = (AntEditor) EditorTestHelper.openInEditor(file,
363+
"org.eclipse.ant.ui.internal.editor.AntEditor", true); //$NON-NLS-1$
364+
assertNotNull("Should have imported target", editor.getAntModel().getTargetNode("build")); //$NON-NLS-1$ //$NON-NLS-2$
367365
}
368366

369367
private int getOffsetWithinLine(AntEditor editor, int lineNumber, int offsetInLine) throws BadLocationException {

ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)