summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2013-07-30 11:00:36 (EDT)
committer Gerrit Code Review @ Eclipse.org2013-07-30 13:56:56 (EDT)
commitabcb87d252b2611b5a71f01b3b3045b686f4778a (patch)
tree7569255edc9631131c7087c6b4e2c97c70ed4dee
parentb5693e62f2ee5a29d0f69d3180b8974f96dab36a (diff)
downloadeclipse.pde.ui-abcb87d252b2611b5a71f01b3b3045b686f4778a.zip
eclipse.pde.ui-abcb87d252b2611b5a71f01b3b3045b686f4778a.tar.gz
eclipse.pde.ui-abcb87d252b2611b5a71f01b3b3045b686f4778a.tar.bz2
Bug 410151 - CCE in TagValidator.visit - test updaterefs/changes/75/14975/2
-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