Skip to content

Commit 09829d7

Browse files
Jami CogswellJami Cogswell
authored andcommitted
simplify instanceof usage
1 parent 8bc0a64 commit 09829d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java/ql/lib/semmle/code/java/security/InsufficientKeySize.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ private class AsymmetricKeyGenerator extends AlgoGeneratorObject {
161161
}
162162

163163
/** An instance of a `javax.crypto.KeyGenerator`. */
164-
private class SymmetricKeyGenerator extends AlgoGeneratorObject {
165-
SymmetricKeyGenerator() { this instanceof JavaxCryptoKeyGenerator }
166-
164+
private class SymmetricKeyGenerator extends AlgoGeneratorObject instanceof JavaxCryptoKeyGenerator {
167165
override Expr getAlgoSpec() { result = this.getAlgoSpec() }
168166
}
169167

0 commit comments

Comments
 (0)