Skip to content

Commit 9d34ce9

Browse files
Adjust the co-variant claim comment.
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent decfcdd commit 9d34ce9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/utils/modelgenerator/internal/CaptureTypeBasedSummaryModels.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private class Function extends ParameterizedType {
162162

163163
/**
164164
* Gets the parameter type of `this` function at position `position`.
165-
* Note that functions are contravariant in their parameter types.
165+
* Note that functions are often contravariant in their parameter types.
166166
*/
167167
Type getParameterType(int position) {
168168
exists(Type t |
@@ -173,7 +173,7 @@ private class Function extends ParameterizedType {
173173

174174
/**
175175
* Gets the return type of `this` function.
176-
* Note that functions are covariant in their return type.
176+
* Note that functions are often covariant in their return type.
177177
*/
178178
Type getReturnType() {
179179
exists(Type t |

0 commit comments

Comments
 (0)