Skip to content

Commit

Permalink
fix: implements case
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Feb 6, 2024
1 parent 76cde80 commit 8df6d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rules/java/lang/ssl_hostname_verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ patterns:
- variable: "TRUE"
detection: ssl_hostname_verifier_true
- pattern: |
class $<_> implements $<HOSTNAME_VERIFIER>() {
class $<...>$<_> implements $<HOSTNAME_VERIFIER> {
$<!>$<...>$<_> verify(String $<_>, $<SSL_SESSION> $<_>) {
return $<TRUE>;
}
};
}
filters:
- variable: HOSTNAME_VERIFIER
regex: \A(javax\.net\.ssl\.)?HostnameVerifier\z
Expand Down
1 change: 0 additions & 1 deletion tests/java/lang/ssl_hostname_verifier/testdata/main.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
socketFactory.setDefaultHostnameVerifier((HostnameVerifier) new NullHostnameVerifier());

public class DummyHostnameVerifier implements HostnameVerifier {
// TODO: not catching implements methods
// bearer:expected java_lang_ssl_hostname_verifier
@Override
public boolean verify(String s, SSLSession sslSession) {
Expand Down

0 comments on commit 8df6d6a

Please sign in to comment.