From 7f866e44187d31a6ff2389b4d8b7a2604e57daa4 Mon Sep 17 00:00:00 2001 From: "Wuyue (Tony) Sun" Date: Fri, 7 Apr 2023 20:42:38 -0400 Subject: [PATCH] Change affected testcases --- .../checkers/testdemo/nonnull.1.expected | 2 +- nonnull-interned-demo/junit/testdemo/assert.0.expected | 10 +++++----- .../lookup/testdemo/lookup.0.expected | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nonnull-interned-demo/checkers/testdemo/nonnull.1.expected b/nonnull-interned-demo/checkers/testdemo/nonnull.1.expected index 137bce8..2eda39b 100644 --- a/nonnull-interned-demo/checkers/testdemo/nonnull.1.expected +++ b/nonnull-interned-demo/checkers/testdemo/nonnull.1.expected @@ -1,6 +1,6 @@ src/checkers/nonnull/NonnullAnnotatedTypeFactory.java:204: error: dereference of possibly-null reference elt if (elt.getKind() == ElementKind.ENUM_CONSTANT) - ^ + ^ 1 error BUILD FAILED diff --git a/nonnull-interned-demo/junit/testdemo/assert.0.expected b/nonnull-interned-demo/junit/testdemo/assert.0.expected index 3a31119..d57a809 100644 --- a/nonnull-interned-demo/junit/testdemo/assert.0.expected +++ b/nonnull-interned-demo/junit/testdemo/assert.0.expected @@ -1,18 +1,18 @@ src/org/junit/Assert.java:105: error: dereference of possibly-null reference expected return expected.equals(actual); - ^ + ^ src/org/junit/Assert.java:152: error: dereference of possibly-null reference o1 if (o1.getClass().isArray() && o2.getClass().isArray()) { - ^ + ^ src/org/junit/Assert.java:152: error: dereference of possibly-null reference o2 if (o1.getClass().isArray() && o2.getClass().isArray()) { - ^ + ^ src/org/junit/Assert.java:359: error: dereference of possibly-null reference expected + expected.getClass().getName() - ^ + ^ src/org/junit/Assert.java:362: error: dereference of possibly-null reference actual + actual.getClass().getName() - ^ + ^ 5 errors BUILD FAILED diff --git a/nonnull-interned-demo/lookup/testdemo/lookup.0.expected b/nonnull-interned-demo/lookup/testdemo/lookup.0.expected index 4fcb77b..61ad105 100644 --- a/nonnull-interned-demo/lookup/testdemo/lookup.0.expected +++ b/nonnull-interned-demo/lookup/testdemo/lookup.0.expected @@ -1,6 +1,6 @@ src/utilMDE/UtilMDE.java:564: error: dereference of possibly-null reference files for (int i = 0; i < files.length; i++) { - ^ + ^ src/utilMDE/UtilMDE.java:716: error: incompatible types in return. return hm.put(key, new Integer(new_total)); ^