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) {
72
72
/**
73
73
* Holds if it is relevant to generate models for `api` based on data flow analysis.
74
74
*/
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
+ }
76
79
77
80
predicate isRelevantForTypeBasedFlowModels = isRelevantForModels / 1 ;
78
81
Original file line number Diff line number Diff line change 3
3
| p;FluentAPI$Inner;notThis;(String);generated |
4
4
| p;ImmutablePojo;getX;();generated |
5
5
| p;Joiner;length;();generated |
6
- | p;MultipleImpls$Strategy;doSomething;(String);generated |
7
6
| p;ParamFlow;ignorePrimitiveReturnValue;(String);generated |
8
7
| p;ParamFlow;mapType;(Class);generated |
9
8
| p;Pojo;doNotSetValue;(String);generated |
You can’t perform that action at this time.
0 commit comments