Skip to content

Commit 5a81942

Browse files
committed
Reuse Unit class from TaintTracking
1 parent 7f7ad88 commit 5a81942

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

java/ql/src/semmle/code/java/security/LdapInjection.qll

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,12 @@ abstract class LdapInjectionSink extends DataFlow::Node { }
1313
/** A sanitizer that prevents LDAP injection attacks. */
1414
abstract class LdapInjectionSanitizer extends DataFlow::Node { }
1515

16-
private newtype TUnit = TMkUnit()
17-
18-
class Unit extends TUnit {
19-
string toString() { result = "unit" }
20-
}
21-
2216
/**
2317
* A unit class for adding additional taint steps.
2418
*
2519
* Extend this class to add additional taint steps that should apply to the LdapInjectionFlowConfig.
2620
*/
27-
class LdapInjectionAdditionalTaintStep extends Unit {
21+
class LdapInjectionAdditionalTaintStep extends TaintTracking::Unit {
2822
abstract predicate step(DataFlow::Node node1, DataFlow::Node node2);
2923
}
3024

0 commit comments

Comments
 (0)