This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
commit ef860e13a635f3d298a17d54fce3a78366359586 Author: Gary Gregory <[email protected]> AuthorDate: Sat Feb 14 08:59:57 2026 -0500 Javadoc --- src/main/java/org/apache/bcel/util/SyntheticRepository.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/org/apache/bcel/util/SyntheticRepository.java b/src/main/java/org/apache/bcel/util/SyntheticRepository.java index 3f1e99a1..ecc3ab20 100644 --- a/src/main/java/org/apache/bcel/util/SyntheticRepository.java +++ b/src/main/java/org/apache/bcel/util/SyntheticRepository.java @@ -36,10 +36,21 @@ public class SyntheticRepository extends MemorySensitiveClassPathRepository { private static final Map<ClassPath, SyntheticRepository> MAP = new ConcurrentHashMap<>(); // CLASSPATH X REPOSITORY + /** + * Gets the singleton instance for the system class path. + * + * @return the singleton instance. + */ public static SyntheticRepository getInstance() { return getInstance(ClassPath.SYSTEM_CLASS_PATH); } + /** + * Gets the singleton instance for the given class path. + * + * @param classPath the class path. + * @return the singleton instance. + */ public static SyntheticRepository getInstance(final ClassPath classPath) { return MAP.computeIfAbsent(classPath, SyntheticRepository::new); }
