Skip to content

Commit 484882a

Browse files
committed
A JDK class should be separate from extensions.
1 parent e7c3e5d commit 484882a

File tree

1 file changed

+5
-2
lines changed
  • edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis

1 file changed

+5
-2
lines changed

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis/Util.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package edu.cuny.hunter.streamrefactoring.core.analysis;
22

3+
import static edu.cuny.hunter.streamrefactoring.core.wala.AnalysisUtils.isJDKClass;
4+
import static edu.cuny.hunter.streamrefactoring.core.wala.AnalysisUtils.isLibraryClass;
5+
36
import java.io.UTFDataFormatException;
47
import java.lang.reflect.Modifier;
58
import java.util.ArrayList;
@@ -164,7 +167,7 @@ public static Set<Entrypoint> findBenchmarkEntryPoints(IClassHierarchy classHier
164167
final Set<Entrypoint> result = new HashSet<>();
165168

166169
for (IClass klass : classHierarchy)
167-
if (!AnalysisUtils.isJDKClass(klass)) {
170+
if (!(isJDKClass(klass) || isLibraryClass(klass))) {
168171
boolean isBenchmarkClass = false;
169172
// iterate over all declared methods
170173
for (com.ibm.wala.classLoader.IMethod method : klass.getDeclaredMethods()) {
@@ -215,7 +218,7 @@ public static Set<Entrypoint> findEntryPoints(IClassHierarchy classHierarchy) {
215218
final Set<Entrypoint> result = new HashSet<>();
216219

217220
for (IClass klass : classHierarchy)
218-
if (!AnalysisUtils.isJDKClass(klass))
221+
if (!(isJDKClass(klass) || isLibraryClass(klass)))
219222
// iterate over all declared methods
220223
for (com.ibm.wala.classLoader.IMethod method : klass.getDeclaredMethods()) {
221224
// if method has an annotation

0 commit comments

Comments
 (0)