@@ -71,7 +71,7 @@ private class IsWindowsFromSystemProp extends IsWindowsGuard instanceof MethodAc
71
71
* Holds when the Guard is an equality check between the system property with the name `propertyName`
72
72
* and the string or char constant `compareToLiteral`.
73
73
*/
74
- private Guard isOsFromFieldEqualityCheck ( string propertyName , string compareToLiteral ) {
74
+ private Guard isOsFromSystemPropertyEqualityCheck ( string propertyName , string compareToLiteral ) {
75
75
result
76
76
.isEquality ( getSystemProperty ( propertyName ) ,
77
77
any ( Literal literal |
@@ -81,19 +81,19 @@ private Guard isOsFromFieldEqualityCheck(string propertyName, string compareToLi
81
81
}
82
82
83
83
private class IsWindowsFromCharPathSeperator extends IsWindowsGuard {
84
- IsWindowsFromCharPathSeperator ( ) { this = isOsFromFieldEqualityCheck ( "path.separator" , "\\" ) }
84
+ IsWindowsFromCharPathSeperator ( ) { this = isOsFromSystemPropertyEqualityCheck ( "path.separator" , "\\" ) }
85
85
}
86
86
87
87
private class IsWindowsFromCharSeperator extends IsWindowsGuard {
88
- IsWindowsFromCharSeperator ( ) { this = isOsFromFieldEqualityCheck ( "file.separator" , ";" ) }
88
+ IsWindowsFromCharSeperator ( ) { this = isOsFromSystemPropertyEqualityCheck ( "file.separator" , ";" ) }
89
89
}
90
90
91
91
private class IsUnixFromCharPathSeperator extends IsUnixGuard {
92
- IsUnixFromCharPathSeperator ( ) { this = isOsFromFieldEqualityCheck ( "path.separator" , "/" ) }
92
+ IsUnixFromCharPathSeperator ( ) { this = isOsFromSystemPropertyEqualityCheck ( "path.separator" , "/" ) }
93
93
}
94
94
95
95
private class IsUnixFromCharSeperator extends IsUnixGuard {
96
- IsUnixFromCharSeperator ( ) { this = isOsFromFieldEqualityCheck ( "file.separator" , ":" ) }
96
+ IsUnixFromCharSeperator ( ) { this = isOsFromSystemPropertyEqualityCheck ( "file.separator" , ":" ) }
97
97
}
98
98
99
99
private class IsUnixFromSystemProp extends IsAnyUnixGuard instanceof MethodAccess {
0 commit comments