Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
swissiety committed Jan 22, 2025
1 parent e0f0eb4 commit 1cc83f0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public interface AnalysisInputLocation {
/**
* Scan the input location and create ClassSources for every compilation / interpretation unit.
*
* @return The source entries.
* @return an Autocloseable resource that must be closed!
*/
@Nonnull
Stream<? extends SootClassSource> getClassSources(@Nonnull View view);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public Optional<JavaSootClassSource> getClassSource(@Nonnull ClassType type, @No
}
}

/** returns a Autocloseable resource that must be closed! */
@Override
@Nonnull
public Stream<JavaSootClassSource> getClassSources(@Nonnull View view) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static PathBasedAnalysisInputLocation create(
+ "' has to be pointing to the root of a class container, e.g. directory, jar, zip, apk, war etc.");
}

/** returns a resource that must be closed! */
/** returns a Autocloseable resource that must be closed! */
@Nonnull
protected Stream<JavaSootClassSource> walkDirectory(
@Nonnull Path dirPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import sootup.core.inputlocation.AnalysisInputLocation;
import sootup.core.model.SourceType;
import sootup.core.signatures.MethodSignature;
import sootup.java.bytecode.frontend.inputlocation.ClassFileBasedAnalysisInputLocation;
import sootup.core.util.printer.BriefStmtPrinter;
import sootup.java.bytecode.frontend.inputlocation.ClassFileBasedAnalysisInputLocation;
import sootup.java.core.views.JavaView;

@Tag(TestCategories.JAVA_8_CATEGORY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getClassSources() {
assertTrue(
classSources.size()
> 20000); // "a lot" not precise as this amount can differ depending on the included
// runtime
// runtime
// library
assertTrue(classSources.stream().anyMatch(cs -> cs.getClassType().equals(sig1)));
assertTrue(view.getClass(sig1).isPresent());
Expand Down

0 comments on commit 1cc83f0

Please sign in to comment.