File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ private class ApacheStrBuilderFluentMethod extends FluentMethod {
39
39
}
40
40
41
41
/**
42
- * The class `` org.apache.commons.lang.SystemUtils` or `org.apache.commons.lang3.SystemUtils`.
42
+ * The class `org.apache.commons.lang.SystemUtils` or `org.apache.commons.lang3.SystemUtils`.
43
43
*/
44
- class ApacheSystemUtilis extends Class {
45
- ApacheSystemUtilis ( ) {
44
+ class ApacheSystemUtils extends Class {
45
+ ApacheSystemUtils ( ) {
46
46
this .hasQualifiedName ( [ "org.apache.commons.lang" , "org.apache.commons.lang3" ] , "SystemUtils" )
47
47
}
48
48
}
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ private import semmle.code.java.dataflow.DataFlow
9
9
private import semmle.code.java.StringCheck
10
10
11
11
/**
12
- * A complimentatry guard that checks if the current platform is Windows.
12
+ * A guard that checks if the current platform is Windows.
13
13
*/
14
14
abstract class IsWindowsGuard extends Guard { }
15
15
16
16
/**
17
- * A complimentatry guard that checks if the current platform is unix or unix-like.
17
+ * A guard that checks if the current platform is unix or unix-like.
18
18
*/
19
19
abstract class IsUnixGuard extends Guard { }
20
20
@@ -53,7 +53,7 @@ private class IsUnixFromSystemProp extends IsUnixGuard instanceof MethodAccess {
53
53
54
54
private predicate isOsFromApacheCommons ( FieldAccess fa , string fieldName ) {
55
55
exists ( Field f | f = fa .getField ( ) |
56
- f .getDeclaringType ( ) instanceof ApacheSystemUtilis and
56
+ f .getDeclaringType ( ) instanceof ApacheSystemUtils and
57
57
f .hasName ( fieldName )
58
58
)
59
59
}
@@ -63,7 +63,7 @@ private class IsWindowsFromApacheCommons extends IsWindowsGuard instanceof Field
63
63
}
64
64
65
65
private class IsUnixFromApacheCommons extends IsUnixGuard instanceof FieldAccess {
66
- IsUnixFromApacheCommons ( ) { isOsFromApacheCommons ( this , [ "IS_OS_UNIX" ] ) }
66
+ IsUnixFromApacheCommons ( ) { isOsFromApacheCommons ( this , "IS_OS_UNIX" ) }
67
67
}
68
68
69
69
/**
You can’t perform that action at this time.
0 commit comments