File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/utils/modelgenerator/internal
test/utils/modelgenerator/dataflow Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ private predicate isRelevantForModels(J::Callable api) {
7272/**
7373 * Holds if it is relevant to generate models for `api` based on data flow analysis.
7474 */
75- predicate isRelevantForDataFlowModels = isRelevantForModels / 1 ;
75+ predicate isRelevantForDataFlowModels ( J:: Callable api ) {
76+ isRelevantForModels ( api ) and
77+ ( not api .getDeclaringType ( ) instanceof J:: Interface or exists ( api .getBody ( ) ) )
78+ }
7679
7780predicate isRelevantForTypeBasedFlowModels = isRelevantForModels / 1 ;
7881
Original file line number Diff line number Diff line change 33| p;FluentAPI$Inner;notThis;(String);generated |
44| p;ImmutablePojo;getX;();generated |
55| p;Joiner;length;();generated |
6- | p;MultipleImpls$Strategy;doSomething;(String);generated |
76| p;ParamFlow;ignorePrimitiveReturnValue;(String);generated |
87| p;ParamFlow;mapType;(Class);generated |
98| p;Pojo;doNotSetValue;(String);generated |
You can’t perform that action at this time.
0 commit comments