Skip to content

Commit 72999c7

Browse files
subatoifelicitymay
andauthored
Update docs/codeql/reusables/kotlin-java-differences.rst
Co-authored-by: Felicity Chapman <[email protected]>
1 parent 3c3442d commit 72999c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/codeql/reusables/kotlin-java-differences.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Be careful when you model code elements that don’t exist in Java, such as ``No
1111
1212
someVar!!.someMethodCall()
1313
14-
In that specific case, you can use the predicate `Expr.getUnderlyingExpr()`. This goes directly to the underlying `VarAccess`` to produce a more similar behavior to that in Java.
14+
In that specific case, you can use the predicate ``Expr.getUnderlyingExpr()``. This goes directly to the underlying ``VarAccess`` to produce a more similar behavior to that in Java.
1515

1616
Nullable elements (`?`) can also produce unexpected behavior. To avoid a `NullPointerException`, Kotlin may inline calls like `expr.toString()` to `String.valueOf(expr)` when `expr` is nullable. Make sure that you write CodeQL around the extracted code, and do not directly modify the source code in the codebase.
1717

0 commit comments

Comments
 (0)