Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public InputStream createInputStream(final URI uri, final Map<?, ?> options) thr
};
}

@SuppressWarnings("restriction")
@Override
public void load(final Map<?, ?> options) throws IOException {
modelLocation = (IModelLocation) options.get(MAYBE_LOCATION_DATA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ private CtxHelpContext createContextForCheck(final CtxHelpDocumentFactory factor
* @throws CoreException
* the core exception
*/
@SuppressWarnings("unchecked")
public void removeContexts(final Delta delta) throws CoreException {
final IProject project = RuntimeProjectUtil.getProject(delta.getUri(), mapper);
if (project != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public class ClassRunner extends BlockJUnit4ClassRunner {
public static final String PROPERTY_UNSTABLE_FAIL = "com.avaloq.test.unstablefail"; //$NON-NLS-1$
/** Class-wide logger. */
private static final Logger LOGGER = LogManager.getLogger(ClassRunner.class);
@SuppressWarnings("unchecked")
private static final List<Class<? extends Annotation>> TEST_ANNOTATIONS = Lists.newArrayList(Test.class, UnitTest.class, ModuleTest.class, IntegrationTest.class, SystemTest.class, PerformanceTest.class, BugTest.class);
private List<FrameworkMethod> expectedMethods;
private int currentMethodIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Build trigger that actually does trigger a full build. Assumes we have a {@link IWorkspace} and a {@link BuildScheduler}.
*/
@SuppressWarnings({"deprecation", "removal"})
@SuppressWarnings("deprecation")
public class XtextBuildTrigger implements IXtextBuildTrigger {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ protected void assertExactlyCompletionProposal(final ICompletionProposal[] compu
* @param sourceFileName
* the filename of the test source that the proposals were to be computed from, must not be {@code null}
*/
@SuppressWarnings("restriction")
private void assertSourceProposals(final String sourceFileName) {
try {
AcfContentAssistProcessorTestBuilder builder = newBuilder().append(getTestSource(sourceFileName).getContent());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
/**
* A base class for xtext generator tests. Allows creating a project and adding files.
*/
@SuppressWarnings({"PMD.AbstractClassWithoutAbstractMethod", "restriction", "nls"})
@SuppressWarnings({"PMD.AbstractClassWithoutAbstractMethod", "nls"})
public abstract class AbstractGeneratorTest {
private static final String MESSAGE_GENERATED_FILE_MUST_EXIST = "Generated file ''{0}'' must exist.";
private static final String MESSAGE_GENERATED_CODE_MUST_BE_CORRECT = "Generated contents of ''{0}'' must be correct.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public class XtextClassRunner extends XtextRunner {
public static final String PROPERTY_UNSTABLE_FAIL = "com.avaloq.test.unstablefail"; //$NON-NLS-1$
/** Class-wide logger. */
private static final Logger LOGGER = LogManager.getLogger(XtextClassRunner.class);
@SuppressWarnings("unchecked")
private static final List<Class<? extends Annotation>> TEST_ANNOTATIONS = Lists.newArrayList(Test.class, UnitTest.class, ModuleTest.class, IntegrationTest.class, SystemTest.class, PerformanceTest.class, BugTest.class);
private List<FrameworkMethod> expectedMethods;
private int currentMethodIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ protected void assertExactlyCompletionProposal(final ICompletionProposal[] compu
* @param sourceFileName
* the filename of the test source that the proposals were to be computed from, must not be {@code null}
*/
@SuppressWarnings("restriction")
private void assertSourceProposals(final String sourceFileName) {
try {
AcfContentAssistProcessorTestBuilder builder = newBuilder().append(getTestSource(sourceFileName).getContent());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ protected ExportItem fingerprintRef(final EObject obj, final EReference ref, fin
* the URIs or by calling a generated function, must not be {@code null}
* @return the fingerprint
*/
@SuppressWarnings("unchecked")
protected ExportItem fingerprintExpr(final Object obj, final EObject context, final FingerprintOrder order, final FingerprintIndirection indirection) {
if (obj instanceof EObject) {
if (indirection == FingerprintIndirection.INDIRECT) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ protected void fingerprintRef(final EObject obj, final EReference ref, final Fin
* @param hasher
* hasher to stream to
*/
@SuppressWarnings("unchecked")
protected void fingerprintExpr(final Object obj, final EObject context, final FingerprintOrder order, final FingerprintIndirection indirection, final Hasher hasher) {
if (obj instanceof EObject) {
if (indirection == FingerprintIndirection.INDIRECT) {
Expand Down
Loading