Skip to content

Commit bbf3fa7

Browse files
committed
do not generate models for toString
1 parent 54031a8 commit bbf3fa7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/ModelExclusions.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ predicate isUninterestingForModels(Callable c) {
6464
isInTestFile(c.getCompilationUnit().getFile()) or
6565
isInternal(c.getCompilationUnit()) or
6666
c instanceof MainMethod or
67+
c instanceof ToStringMethod or
6768
c instanceof StaticInitializer or
6869
exists(FunctionalExpr funcExpr | c = funcExpr.asMethod()) or
6970
c.getDeclaringType() instanceof TestLibrary or

0 commit comments

Comments
 (0)