mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[xtext] Clean-up, Organize imports
This commit is contained in:
parent
c840b0c403
commit
160d62f8be
8 changed files with 0 additions and 20 deletions
|
@ -14,7 +14,6 @@ import java.util.Collection;
|
|||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.util.URI;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.mwe.core.WorkflowContext;
|
||||
import org.eclipse.emf.mwe.core.WorkflowContextDefaultImpl;
|
||||
import org.eclipse.emf.mwe.core.WorkflowInterruptedException;
|
||||
|
@ -28,8 +27,6 @@ import org.eclipse.xtext.index.indexTestLanguage.IndexTestLanguagePackage;
|
|||
import org.eclipse.xtext.junit4.AbstractXtextTests;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
|
||||
/**
|
||||
* @author Sven Efftinge - Initial contribution and API
|
||||
*/
|
||||
|
|
|
@ -23,7 +23,6 @@ import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic;
|
|||
import org.eclipse.xtext.serializer.sequencer.IHiddenTokenSequencer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
public class FormatterTest extends AbstractXtextTests {
|
||||
|
|
|
@ -5,7 +5,6 @@ package org.eclipse.xtext.parsetree.formatter;
|
|||
|
||||
import org.eclipse.xtext.formatting.IFormatter;
|
||||
import org.eclipse.xtext.formatting.ILineSeparatorInformation;
|
||||
import org.eclipse.xtext.formatting.IWhitespaceInformationProvider;
|
||||
|
||||
/**
|
||||
* used to register components to be used within the IDE.
|
||||
|
|
|
@ -7,7 +7,6 @@ import org.eclipse.emf.common.util.URI;
|
|||
import org.eclipse.emf.ecore.resource.Resource;
|
||||
import org.eclipse.xtext.IGrammarAccess;
|
||||
import org.eclipse.xtext.XtextStandaloneSetup;
|
||||
import org.eclipse.xtext.conversion.impl.DeclarativeValueConverterServiceTest;
|
||||
import org.eclipse.xtext.formatting.ILineSeparatorInformation;
|
||||
import org.eclipse.xtext.junit4.AbstractXtextTests;
|
||||
import org.eclipse.xtext.parsetree.reconstr.Serializer;
|
||||
|
|
|
@ -192,7 +192,6 @@ public class GenericModuleTest extends Assert {
|
|||
Foo.instantiations = 0;
|
||||
|
||||
AbstractGenericModule m = new AbstractGenericModule() {
|
||||
@SuppressWarnings("unused")
|
||||
@SingletonBinding()
|
||||
public Class<Foo> bindFoo() {
|
||||
return Foo.class;
|
||||
|
@ -212,7 +211,6 @@ public class GenericModuleTest extends Assert {
|
|||
Foo.instantiations = 0;
|
||||
|
||||
AbstractGenericModule m = new AbstractGenericModule() {
|
||||
@SuppressWarnings("unused")
|
||||
@SingletonBinding(eager = true)
|
||||
public Class<Foo> bindFoo() {
|
||||
return Foo.class;
|
||||
|
|
|
@ -20,8 +20,6 @@ import org.eclipse.emf.ecore.EcoreFactory;
|
|||
import org.eclipse.emf.ecore.EcorePackage;
|
||||
import org.eclipse.emf.ecore.resource.Resource;
|
||||
import org.eclipse.emf.ecore.resource.impl.ResourceImpl;
|
||||
import org.eclipse.xtext.XtextFactory;
|
||||
import org.eclipse.xtext.XtextPackage;
|
||||
import org.eclipse.xtext.validation.ValidationTestHelper.TestChain;
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
|
@ -73,7 +71,6 @@ public class DeclarativeValidatorTest extends Assert {
|
|||
@SuppressWarnings("serial")
|
||||
@Test public void testSkipExpensive() throws Exception {
|
||||
AbstractDeclarativeValidator test = new ValidationTestHelper.TestValidator() {
|
||||
@SuppressWarnings("unused")
|
||||
@Check(CheckType.EXPENSIVE)
|
||||
public void bar(Object x) {
|
||||
error("fooObject", EcorePackage.Literals.ECLASS__EALL_ATTRIBUTES);
|
||||
|
@ -110,7 +107,6 @@ public class DeclarativeValidatorTest extends Assert {
|
|||
|
||||
@Test public void testGuard() throws Exception {
|
||||
AbstractDeclarativeValidator validator = new AbstractDeclarativeValidator() {
|
||||
@SuppressWarnings("unused")
|
||||
@Check
|
||||
public void guarded(EClass x) {
|
||||
guard("".equals(x.getName()));
|
||||
|
@ -203,7 +199,6 @@ public class DeclarativeValidatorTest extends Assert {
|
|||
@Test public void testError() {
|
||||
AbstractDeclarativeValidator test = new AbstractDeclarativeValidator() {
|
||||
@Check
|
||||
@SuppressWarnings("unused")
|
||||
public void foo(Object x) {
|
||||
error("Error Message", EcorePackage.Literals.ENAMED_ELEMENT__NAME);
|
||||
}
|
||||
|
@ -221,7 +216,6 @@ public class DeclarativeValidatorTest extends Assert {
|
|||
@Test public void testErrorWithSource() {
|
||||
AbstractDeclarativeValidator test = new AbstractDeclarativeValidator() {
|
||||
@Check
|
||||
@SuppressWarnings("unused")
|
||||
public void foo(Object x) {
|
||||
error(
|
||||
"Error Message",
|
||||
|
@ -243,7 +237,6 @@ public class DeclarativeValidatorTest extends Assert {
|
|||
@Test public void testErrorWithCode() {
|
||||
AbstractDeclarativeValidator test = new AbstractDeclarativeValidator() {
|
||||
@Check
|
||||
@SuppressWarnings("unused")
|
||||
public void foo(Object x) {
|
||||
error(
|
||||
"Error Message",
|
||||
|
@ -267,7 +260,6 @@ public class DeclarativeValidatorTest extends Assert {
|
|||
@Test public void testWarning() {
|
||||
AbstractDeclarativeValidator test = new AbstractDeclarativeValidator() {
|
||||
@Check
|
||||
@SuppressWarnings("unused")
|
||||
public void foo(Object x) {
|
||||
warning("Error Message", EcorePackage.Literals.ENAMED_ELEMENT__NAME);
|
||||
}
|
||||
|
@ -285,7 +277,6 @@ public class DeclarativeValidatorTest extends Assert {
|
|||
@Test public void testWarningWithSource() {
|
||||
AbstractDeclarativeValidator test = new AbstractDeclarativeValidator() {
|
||||
@Check
|
||||
@SuppressWarnings("unused")
|
||||
public void foo(Object x) {
|
||||
warning(
|
||||
"Error Message",
|
||||
|
@ -307,7 +298,6 @@ public class DeclarativeValidatorTest extends Assert {
|
|||
@Test public void testWarningWithCode() {
|
||||
AbstractDeclarativeValidator test = new AbstractDeclarativeValidator() {
|
||||
@Check
|
||||
@SuppressWarnings("unused")
|
||||
public void foo(Object x) {
|
||||
warning(
|
||||
"Error Message",
|
||||
|
|
|
@ -99,7 +99,6 @@ public class ValidationTestHelper {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Check
|
||||
private void foo(EClass x) {
|
||||
error("fooString", EcorePackage.Literals.ECLASS__ABSTRACT);
|
||||
|
|
|
@ -41,7 +41,6 @@ import org.eclipse.xtext.TypeRef;
|
|||
import org.eclipse.xtext.UnorderedGroup;
|
||||
import org.eclipse.xtext.XtextFactory;
|
||||
import org.eclipse.xtext.XtextStandaloneSetup;
|
||||
import org.eclipse.xtext.diagnostics.Severity;
|
||||
import org.eclipse.xtext.resource.XtextResource;
|
||||
import org.eclipse.xtext.util.StringInputStream;
|
||||
import org.eclipse.xtext.validation.AbstractValidationMessageAcceptingTestCase;
|
||||
|
|
Loading…
Reference in a new issue