Fix type restriction for Pattern hashcode inspection (#9947)

This commit is contained in:
Jonathan Wei 2020-05-28 22:26:32 -07:00 committed by GitHub
parent cbd587dbd6
commit 880a7943b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -387,8 +387,8 @@
<constraint name="b" within="" contains="" />
</searchConfiguration>
<searchConfiguration name="Use hashCode of Pattern.toString() instead" text="$a$.hashCode()" recursive="true" caseInsensitive="true" type="JAVA" pattern_context="default">
<constraint name="__context__" nameOfExprType="java\.util\.regex\.Pattern" within="" contains="" />
<constraint name="a" within="" contains="" />
<constraint name="__context__" within="" contains="" />
<constraint name="a" nameOfExprType="java\.util\.regex\.Pattern" within="" contains="" />
</searchConfiguration>
<searchConfiguration name="Use Objects.hash() on Pattern.toString() instead" text="java.util.Objects.hash($b$,$a$)" recursive="true" caseInsensitive="true" type="JAVA" pattern_context="default">
<constraint name="__context__" within="" contains="" />