Skip to content

Commit 74f02cf

Browse files
committed
Java: Allow empty package name in model definitions.
1 parent b96540c commit 74f02cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ module ModelValidation {
549549
ext = "" and
550550
pred = "negative summary"
551551
|
552-
not package.regexpMatch("[a-zA-Z0-9_\\.]+") and
552+
not package.regexpMatch("[a-zA-Z0-9_\\.]*") and
553553
result = "Dubious package \"" + package + "\" in " + pred + " model."
554554
or
555555
not type.regexpMatch("[a-zA-Z0-9_\\$<>]+") and

0 commit comments

Comments
 (0)