Skip to content

Commit dd4aa3e

Browse files
authored
Documentation about SignatureRegexes (#7689)
1 parent 0224b07 commit dd4aa3e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

  • checker-qual/src/main/java/org/checkerframework/checker/signature/qual
  • framework/src/main/java/org/checkerframework/framework/type/treeannotator
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# No `@QualifierForLiteral` annotations
2+
3+
These type qualifiers have no `@QualifierForLiteral` annotations. Instead, they
4+
use the regular expressions in
5+
[reflection-util](https://github.com/plume-lib/reflection-util/)'s
6+
[`SignatureRegexes`
7+
class](https://github.com/plume-lib/reflection-util/blob/master/src/main/java/org/plumelib/reflection/SignatureRegexes.java).

framework/src/main/java/org/checkerframework/framework/type/treeannotator/LiteralTreeAnnotator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ public Void visitLiteral(LiteralTree tree, AnnotatedTypeMirror type) {
297297
" the glb of `matches` for \"" + string + "\" is " + res,
298298
" which is a subtype of " + sam,
299299
" whose pattern does not match \"" + string + "\".",
300+
" patterns = " + stringPatterns,
300301
" matches = " + matchesOnePerLine,
301302
" nonMatches = " + nonMatches));
302303
}

0 commit comments

Comments
 (0)