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 {
3939}
4040
4141/**
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`.
4343 */
44- class ApacheSystemUtilis extends Class {
45- ApacheSystemUtilis ( ) {
44+ class ApacheSystemUtils extends Class {
45+ ApacheSystemUtils ( ) {
4646 this .hasQualifiedName ( [ "org.apache.commons.lang" , "org.apache.commons.lang3" ] , "SystemUtils" )
4747 }
4848}
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ private import semmle.code.java.dataflow.DataFlow
99private import semmle.code.java.StringCheck
1010
1111/**
12- * A complimentatry guard that checks if the current platform is Windows.
12+ * A guard that checks if the current platform is Windows.
1313 */
1414abstract class IsWindowsGuard extends Guard { }
1515
1616/**
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.
1818 */
1919abstract class IsUnixGuard extends Guard { }
2020
@@ -53,7 +53,7 @@ private class IsUnixFromSystemProp extends IsUnixGuard instanceof MethodAccess {
5353
5454private predicate isOsFromApacheCommons ( FieldAccess fa , string fieldName ) {
5555 exists ( Field f | f = fa .getField ( ) |
56- f .getDeclaringType ( ) instanceof ApacheSystemUtilis and
56+ f .getDeclaringType ( ) instanceof ApacheSystemUtils and
5757 f .hasName ( fieldName )
5858 )
5959}
@@ -63,7 +63,7 @@ private class IsWindowsFromApacheCommons extends IsWindowsGuard instanceof Field
6363}
6464
6565private class IsUnixFromApacheCommons extends IsUnixGuard instanceof FieldAccess {
66- IsUnixFromApacheCommons ( ) { isOsFromApacheCommons ( this , [ "IS_OS_UNIX" ] ) }
66+ IsUnixFromApacheCommons ( ) { isOsFromApacheCommons ( this , "IS_OS_UNIX" ) }
6767}
6868
6969/**
You can’t perform that action at this time.
0 commit comments