Skip to content

Commit 939279a

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: add comments
1 parent 673d37c commit 939279a

9 files changed

+17
-17
lines changed

java/ql/lib/ext/java.io.model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ extensions:
9191
extensible: neutralModel
9292
data:
9393
- ["java.io", "File", "exists", "()", "manual"]
94-
- ["java.io", "File", "getName", "()", "manual"] # ! might need to double-check this one
94+
- ["java.io", "File", "getName", "()", "manual"] # ! unsure if should be neutral model

java/ql/lib/ext/java.lang.model.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ extensions:
6262
- ["java.lang", "String", False, "concat", "(String)", "", "Argument[-1]", "ReturnValue", "taint", "manual"]
6363
- ["java.lang", "String", False, "concat", "(String)", "", "Argument[0]", "ReturnValue", "taint", "manual"]
6464
- ["java.lang", "String", False, "copyValueOf", "", "", "Argument[0]", "ReturnValue", "taint", "manual"]
65-
- ["java.lang", "String", False, "endsWith", "", "", "Argument[-1]", "ReturnValue", "taint", "manual"]
65+
- ["java.lang", "String", False, "endsWith", "", "", "Argument[-1]", "ReturnValue", "taint", "manual"] # ! why is this a summary model and not a neutral model instead? it returns a boolean
6666
- ["java.lang", "String", False, "format", "(Locale,String,Object[])", "", "Argument[1]", "ReturnValue", "taint", "manual"]
6767
- ["java.lang", "String", False, "format", "(Locale,String,Object[])", "", "Argument[2].ArrayElement", "ReturnValue", "taint", "manual"]
6868
- ["java.lang", "String", False, "format", "(String,Object[])", "", "Argument[0]", "ReturnValue", "taint", "manual"]
@@ -113,7 +113,7 @@ extensions:
113113
data:
114114
- ["java.lang", "AbstractStringBuilder", "length", "()", "manual"]
115115
- ["java.lang", "Boolean", "equals", "(Object)", "manual"]
116-
- ["java.lang", "Class", "getClassLoader", "()", "manual"] # ! might need to double-check this one
116+
- ["java.lang", "Class", "getClassLoader", "()", "manual"] # ! unsure if should be neutral model
117117
- ["java.lang", "Class", "getName", "()", "manual"]
118118
- ["java.lang", "Class", "getSimpleName", "()", "manual"]
119119
- ["java.lang", "Class", "isAssignableFrom", "(Class)", "manual"]
@@ -127,16 +127,16 @@ extensions:
127127
- ["java.lang", "Object", "hashCode", "()", "manual"]
128128
- ["java.lang", "Object", "toString", "()", "manual"]
129129
- ["java.lang", "String", "contains", "(CharSequence)", "manual"]
130-
- ["java.lang", "String", "endsWith", "(String)", "manual"]
130+
- ["java.lang", "String", "endsWith", "(String)", "manual"] # ! unsure if should be neutral model since already modeled as a summary above
131131
- ["java.lang", "String", "equals", "(Object)", "manual"]
132132
- ["java.lang", "String", "equalsIgnoreCase", "(String)", "manual"]
133133
- ["java.lang", "String", "hashCode", "()", "manual"]
134-
- ["java.lang", "String", "indexOf", "(String)", "manual"]
134+
- ["java.lang", "String", "indexOf", "(String)", "manual"] # ! unsure if should be neutral model, is flow through the param interesting in this case?
135135
- ["java.lang", "String", "isEmpty", "()", "manual"]
136136
- ["java.lang", "String", "length", "()", "manual"]
137137
- ["java.lang", "String", "startsWith", "(String)", "manual"]
138138
- ["java.lang", "System", "currentTimeMillis", "()", "manual"]
139-
- ["java.lang", "System", "getProperty", "(String)", "manual"]
139+
- ["java.lang", "System", "getProperty", "(String)", "manual"] # ! unsure if should be neutral model
140140
- ["java.lang", "System", "nanoTime", "()", "manual"]
141141
- ["java.lang", "Thread", "currentThread", "()", "manual"]
142-
- ["java.lang", "Thread", "sleep", "(long)", "manual"]
142+
- ["java.lang", "Thread", "sleep", "(long)", "manual"] # ! unsure if should be neutral model, is flow through the param interesting in this case?

java/ql/lib/ext/java.math.model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extensions:
55
data:
66
- ["java.math", "BigDecimal", False, "BigDecimal", "(String)", "", "Argument[0]", "Argument[-1]", "taint", "manual"]
77
- ["java.math", "BigDecimal", False, "valueOf", "(double)", "", "Argument[0]", "ReturnValue", "taint", "manual"]
8-
- ["java.math", "BigDecimal", False, "valueOf", "(long)", "", "Argument[0]", "ReturnValue", "taint", "manual"] # ! consider making this signatureless and merging with the above line instead
8+
- ["java.math", "BigDecimal", False, "valueOf", "(long)", "", "Argument[0]", "ReturnValue", "taint", "manual"]
99
- ["java.lang", "Math", False, "min", "(int,int)", "", "Argument[0..1]", "ReturnValue", "value", "manual"]
1010

1111
- addsTo:

java/ql/lib/ext/java.sql.model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ extensions:
2828
pack: codeql/java-all
2929
extensible: neutralModel
3030
data:
31-
- ["java.sql", "ResultSet", "next", "()", "manual"]
31+
- ["java.sql", "ResultSet", "next", "()", "manual"] # ! unsure if should be neutral model

java/ql/lib/ext/java.text.model.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ extensions:
33
pack: codeql/java-all
44
extensible: neutralModel
55
data:
6-
- ["java.text", "DateFormat", "format", "(Date)", "manual"]
7-
- ["java.text", "SimpleDateFormat", "SimpleDateFormat", "(String)", "manual"]
6+
- ["java.text", "DateFormat", "format", "(Date)", "manual"] # ! unsure if should be neutral model, is flow through the param interesting in this case?
7+
- ["java.text", "SimpleDateFormat", "SimpleDateFormat", "(String)", "manual"] # ! unsure if should be neutral model, is flow through the param interesting in this case?

java/ql/lib/ext/java.time.model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ extensions:
44
extensible: neutralModel
55
data:
66
- ["java.time", "Instant", "now", "()", "manual"]
7-
- ["java.time", "LocalDate", "of", "(int,int,int)", "manual"]
7+
- ["java.time", "LocalDate", "of", "(int,int,int)", "manual"] # ! unsure if should be neutral model, is flow through the param interesting in this case?
88
- ["java.time", "ZonedDateTime", "now", "()", "manual"]

java/ql/lib/ext/java.util.function.model.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ extensions:
99
pack: codeql/java-all
1010
extensible: summaryModel
1111
data:
12-
- ["java.util.function", "Function", True, "apply", "(Object)", "", "Argument[0]", "ReturnValue", "taint", "manual"]
12+
- ["java.util.function", "Function", True, "apply", "(Object)", "", "Argument[0]", "ReturnValue", "taint", "manual"] # ! unsure if should be added as a MaD model and if model is correct
1313
- ["java.util.function", "Supplier", False, "get", "()", "", "Argument[-1]", "ReturnValue", "value", "manual"]
1414

1515
- addsTo:
1616
pack: codeql/java-all
1717
extensible: neutralModel
1818
data:
19-
- ["java.util.function", "Consumer", "accept", "(Object)", "manual"]
19+
- ["java.util.function", "Consumer", "accept", "(Object)", "manual"] # ! unsure if should be neutral model

java/ql/lib/ext/java.util.model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ extensions:
369369
- ["java.util", "Collections", "emptyList", "()", "manual"]
370370
- ["java.util", "Collections", "emptyMap", "()", "manual"]
371371
- ["java.util", "Collections", "emptySet", "()", "manual"]
372-
- ["java.util", "Date", "Date", "(long)", "manual"]
372+
- ["java.util", "Date", "Date", "(long)", "manual"] # ! unsure if should be neutral model, is flow through the param interesting in this case?
373373
- ["java.util", "Date", "getTime", "()", "manual"]
374374
- ["java.util", "Iterator", "hasNext", "()", "manual"]
375375
- ["java.util", "List", "clear", "()", "manual"]

java/ql/lib/ext/java.util.stream.model.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ extensions:
9292
pack: codeql/java-all
9393
extensible: neutralModel
9494
data:
95-
- ["java.util.stream", "Collectors", "joining", "(CharSequence)", "manual"]
95+
- ["java.util.stream", "Collectors", "joining", "(CharSequence)", "manual"] # ! unsure if should be neutral model, is flow through the param interesting in this case?
9696
- ["java.util.stream", "Collectors", "toList", "()", "manual"]
97-
- ["java.util.stream", "Collectors", "toMap", "(Function,Function)", "manual"]
97+
- ["java.util.stream", "Collectors", "toMap", "(Function,Function)", "manual"] # ! unsure if should be neutral model, is flow through the param interesting in this case?
9898
- ["java.util.stream", "Collectors", "toSet", "()", "manual"]

0 commit comments

Comments
 (0)