Skip to content

Commit fd52135

Browse files
author
Timo Mueller
committed
Removed unnecessary check for type
1 parent 787a4ed commit fd52135

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java/ql/src/experimental/Security/CWE/CWE-665/InsecureRmiJmxEnvironmentConfiguration.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import semmle.code.java.dataflow.Nullness
1919

2020
/** Predicate which detects vulnerable Constructors */
2121
predicate isRmiOrJmxServerCreateConstructor(Constructor constructor) {
22-
constructor.getName() = "RMIConnectorServer" and
2322
constructor
2423
.getDeclaringType()
2524
.hasQualifiedName("javax.management.remote.rmi", "RMIConnectorServer")
@@ -38,7 +37,7 @@ predicate isRmiOrJmxServerCreateMethod(Method method) {
3837
class MapToPutCredentialstypeConfiguration extends DataFlow2::Configuration {
3938
MapToPutCredentialstypeConfiguration() { this = "MapToPutCredentialstypeConfiguration" }
4039

41-
override predicate isSource(DataFlow::Node source) {
40+
override predicate isSource(DataFlow2::Node source) {
4241
source.asExpr().(ClassInstanceExpr).getConstructedType() instanceof MapType
4342
}
4443

0 commit comments

Comments
 (0)