From c7099584b44f0c4d7acb95ee1719df3aad054350 Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Fri, 13 Feb 2026 22:51:53 +0000 Subject: [PATCH] Put imports implementing abstract classes in private module --- java/ql/lib/semmle/code/java/Concepts.qll | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/java/ql/lib/semmle/code/java/Concepts.qll b/java/ql/lib/semmle/code/java/Concepts.qll index d7d2be4d75d..4fcb89918b6 100644 --- a/java/ql/lib/semmle/code/java/Concepts.qll +++ b/java/ql/lib/semmle/code/java/Concepts.qll @@ -7,7 +7,15 @@ overlay[local?] module; import java -private import semmle.code.java.frameworks.JavaxAnnotations + +/** + * A module importing the frameworks that implement `RegexMatch`es, + * ensuring that they are visible to the concepts library. + */ +private module Frameworks { + private import semmle.code.java.JDK + private import semmle.code.java.frameworks.JavaxAnnotations +} /** * An expression that represents a regular expression match.