aboutsummaryrefslogtreecommitdiffstats
path: root/testing-drivers
diff options
context:
space:
mode:
authorLars Grefer <eclipse@larsgrefer.de>2020-08-15 17:01:46 +0200
committerLars Grefer <eclipse@larsgrefer.de>2020-08-15 17:01:46 +0200
commit639f5030e0391e831138f9786cf831c3374449e7 (patch)
treefc4e616cb6df8e73722a6d0cf83a55efd6d87387 /testing-drivers
parent2409bcbc7c9606b055e23f52d688eecda84351d6 (diff)
downloadaspectj-639f5030e0391e831138f9786cf831c3374449e7.tar.gz
aspectj-639f5030e0391e831138f9786cf831c3374449e7.zip
Weaken Collection declarations
Reports on declarations of Collection variables made by using the collection class as the type, rather than an appropriate interface. Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Diffstat (limited to 'testing-drivers')
-rw-r--r--testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java b/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
index 42f4c4451..751a035fa 100644
--- a/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
+++ b/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
@@ -176,7 +176,7 @@ public class Harness {
/** just don't say anything! */
protected boolean silentHarness;
- private HashMap<String,Feature> features;
+ private Map<String,Feature> features;
/** if true, do not delete temporary files. */
private boolean keepTemp;
@@ -212,7 +212,7 @@ public class Harness {
LangUtil.throwIaxIfFalse(!LangUtil.isEmpty(args), "empty args");
// read arguments
final ArrayList<String> globals = new ArrayList<>();
- final ArrayList<String> files = new ArrayList<>();
+ final List<String> files = new ArrayList<>();
final LinkedList<String> argList = new LinkedList<>(Arrays.asList(args));
for (int i = 0; i < argList.size(); i++) {
String arg = argList.get(i);
@@ -604,7 +604,7 @@ public class Harness {
/** print known aliases at the end of the syntax message */
protected void printAliases(PrintStream out) {
LangUtil.throwIaxIfNull(out, "out");
- Properties props = getOptionAliases();
+ Map props = getOptionAliases();
if (null == props) {
return;
}
@@ -699,7 +699,7 @@ class FeatureHarness extends Harness {
"-junit" + OPTION_DELIM + "-ajctestSkipKeywords=knownLimitation,purejava"
};
static {
- Properties optionAliases = Harness.getOptionAliases();
+ Map optionAliases = Harness.getOptionAliases();
if (null != optionAliases) {
for (int i = 1; i < ALIASES.length; i += 2) {
optionAliases.put(ALIASES[i-1], ALIASES[i]);
@@ -941,7 +941,7 @@ class TestMaker {
}
public Harness.RunResult run(AjcTest.Suite.Spec spec) {
- ArrayList<IRunSpec> kids = spec.getChildren();
+ Iterable<IRunSpec> kids = spec.getChildren();
for (IRunSpec iRunSpec : kids) {
makeTest( (AjcTest.Spec) iRunSpec);
}