summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2013-07-30 11:00:36 (EDT)
committer Mike Rennie2013-07-30 11:00:36 (EDT)
commitb3b3ed04b9ba2a16d9cb087e2351a308ba6ce713 (patch)
tree1f101c040936c2b273dabed5819f44e1bc1645e5
parentb485f0bb1ca6f5179c9f5e1992aa92f4455e1a16 (diff)
downloadeclipse.pde.ui-b3b3ed04b9ba2a16d9cb087e2351a308ba6ce713.zip
eclipse.pde.ui-b3b3ed04b9ba2a16d9cb087e2351a308ba6ce713.tar.gz
eclipse.pde.ui-b3b3ed04b9ba2a16d9cb087e2351a308ba6ce713.tar.bz2
Bug 410151 - CCE in TagValidator.visit - test update
-rw-r--r--apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/InvalidAnnotationTagTests.java2
-rw-r--r--apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/TagTest.java2
-rw-r--r--apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java1
-rw-r--r--apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/valid/test3.java1
4 files changed, 2 insertions, 4 deletions
diff --git a/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/InvalidAnnotationTagTests.java b/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/InvalidAnnotationTagTests.java
index cc42a6d..839d2b8 100644
--- a/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/InvalidAnnotationTagTests.java
+++ b/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/InvalidAnnotationTagTests.java
@@ -304,7 +304,7 @@ public class InvalidAnnotationTagTests extends TagTest {
* Tests for an invalid @noreference tag on a field in a visible member annotation
*/
private void x14(boolean inc) {
- setExpectedProblemIds(getDefaultProblemSet(7));
+ setExpectedProblemIds(getDefaultProblemSet(1));
setExpectedMessageArgs(new String[][] {
{"@noreference", BuilderMessages.TagValidator_annotation_field}
});
diff --git a/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/TagTest.java b/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/TagTest.java
index 5a6707a..e4d2024 100644
--- a/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/TagTest.java
+++ b/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/tags/TagTest.java
@@ -99,7 +99,7 @@ public abstract class TagTest extends ApiBuilderTest {
/* tests */
for (int i = 0, length = classes.length; i < length; i++) {
- Class clazz = classes[i];
+ Class<?> clazz = classes[i];
Method suiteMethod;
try {
suiteMethod = clazz.getDeclaredMethod("suite", new Class[0]);
diff --git a/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java b/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java
index a8025f7..1ea9d16 100644
--- a/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java
+++ b/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/test14.java
@@ -1,4 +1,3 @@
-package x.y.z;
/*******************************************************************************
* Copyright (c) 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
diff --git a/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/valid/test3.java b/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/valid/test3.java
index 9c99af6..9d05473 100644
--- a/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/valid/test3.java
+++ b/apitools/org.eclipse.pde.api.tools.tests/test-builder/tags/annotation/valid/test3.java
@@ -1,4 +1,3 @@
-package x.y.z;
/*******************************************************************************
* Copyright (c) 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials