File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
package edu .cuny .hunter .streamrefactoring .core .analysis ;
2
2
3
+ import static edu .cuny .hunter .streamrefactoring .core .wala .AnalysisUtils .isJDKClass ;
4
+ import static edu .cuny .hunter .streamrefactoring .core .wala .AnalysisUtils .isLibraryClass ;
5
+
3
6
import java .io .UTFDataFormatException ;
4
7
import java .lang .reflect .Modifier ;
5
8
import java .util .ArrayList ;
@@ -172,7 +175,7 @@ public static Set<Entrypoint> findBenchmarkEntryPoints(IClassHierarchy classHier
172
175
final Set <Entrypoint > result = new HashSet <>();
173
176
174
177
for (IClass klass : classHierarchy )
175
- if (!AnalysisUtils . isJDKClass (klass )) {
178
+ if (!( isJDKClass (klass ) || isLibraryClass ( klass ) )) {
176
179
boolean isBenchmarkClass = false ;
177
180
// iterate over all declared methods
178
181
for (com .ibm .wala .classLoader .IMethod method : klass .getDeclaredMethods ()) {
@@ -218,7 +221,7 @@ public static Set<Entrypoint> findEntryPoints(IClassHierarchy classHierarchy) {
218
221
final Set <Entrypoint > result = new HashSet <>();
219
222
220
223
for (IClass klass : classHierarchy )
221
- if (!AnalysisUtils . isJDKClass (klass )) {
224
+ if (!( isJDKClass (klass ) || isLibraryClass ( klass )))
222
225
boolean entryPointClass = false ;
223
226
boolean addedInstanceMethod = false ;
224
227
You can’t perform that action at this time.
0 commit comments