File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ class StringPartialMatchMethod extends Method {
52
52
* The index of the parameter that is being matched against.
53
53
*/
54
54
int getMatchParameterIndex ( ) {
55
- if not this .hasName ( "regionMatches" )
56
- then result = 0
57
- else this . getParameterType ( result ) instanceof TypeString
55
+ if this .hasName ( "regionMatches" )
56
+ then this . getParameterType ( result ) instanceof TypeString
57
+ else result = 0
58
58
}
59
59
}
60
60
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import java
2
2
private import semmle.code.java.frameworks.apache.Lang
3
3
4
4
/**
5
- * Gets Expr that return the value of `propertyName` from `System.getProperty()`.
5
+ * Gets an expression that retrieves the value of `propertyName` from `System.getProperty()`.
6
6
*/
7
7
Expr getSystemProperty ( string propertyName ) {
8
8
result = getSystemPropertyFromSystem ( propertyName ) or
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ abstract class IsUnixGuard extends Guard { }
37
37
abstract class IsAnyUnixGuard extends Guard { }
38
38
39
39
/**
40
- * Holds when the MethodAccess is a call to check the current OS using either the upper case `osUpperCase` or lower case `osLowerCase` string constants .
40
+ * Holds when `ma` compares the current OS against the string constant `osString` .
41
41
*/
42
42
bindingset [ osString]
43
43
private predicate isOsFromSystemProp ( MethodAccess ma , string osString ) {
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ private class FileCreateTempFileSink extends FileCreationSink {
104
104
}
105
105
106
106
/**
107
- * A guard that checks whether or not the the program is running on the Windows OS .
107
+ * A guard that holds when the program is definitely running under some version of Windows .
108
108
*/
109
109
abstract private class WindowsOsBarrierGuard extends DataFlow:: BarrierGuard { }
110
110
You can’t perform that action at this time.
0 commit comments