Skip to content

Commit

Permalink
Revert "Add Throwable.getCause and getLocalizedMessage() library mode…
Browse files Browse the repository at this point in the history
…ls (#717)"

This reverts commit c4c7c4b.
  • Loading branch information
msridhar committed Jul 19, 2023
1 parent 825bd85 commit 79f6d15
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,6 @@ private static class DefaultLibraryModels implements LibraryModels {
new ImmutableSet.Builder<MethodRef>()
.add(methodRef("com.sun.source.tree.CompilationUnitTree", "getPackageName()"))
.add(methodRef("java.lang.Throwable", "getMessage()"))
.add(methodRef("java.lang.Throwable", "getLocalizedMessage()"))
.add(methodRef("java.lang.Throwable", "getCause()"))
.add(methodRef("java.lang.ref.Reference", "get()"))
.add(methodRef("java.lang.ref.PhantomReference", "get()"))
.add(methodRef("java.lang.ref.SoftReference", "get()"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ public static void referenceStuff() {
Exception e = new RuntimeException();
// BUG: Diagnostic contains: dereferenced expression
e.getMessage().hashCode();
// BUG: Diagnostic contains: dereferenced expression
e.getLocalizedMessage().hashCode();
// BUG: Diagnostic contains: dereferenced expression
e.getCause().toString();
}

// we will add bug annotations when we have full support for maps
Expand Down

0 comments on commit 79f6d15

Please sign in to comment.