Skip to content

Commit

Permalink
[J2KT] Add missing @NullMarked annotations in java.util and remove Ob…
Browse files Browse the repository at this point in the history
…jects.equal(String, String) method, which is not part of the JRE.

PiperOrigin-RevId: 487908001
  • Loading branch information
Googler authored and copybara-github committed Nov 11, 2022
1 parent da11d5c commit 5e8c52e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ readable_example(
"*.java",
"*.native.js",
]),
# TODO(b/204593842): [J2KT] Figure out how to deal with JS native types
build_kt_readables = False,
generate_wasm_readables = False,
deps = ["//third_party:gwt-jsinterop-annotations-j2cl"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ open class Main {

@JvmStatic
fun boxingWithGenerics() {
Main.Foo<Any?>(Optional.of<Main.IntJsEnum?>(Main.IntJsEnum.MINUSONE))
Main.Foo<Any?>(Optional.of<Main.IntJsEnum>(Main.IntJsEnum.MINUSONE) as Optional<Main.IntJsEnum>?)
}
}

Expand Down Expand Up @@ -164,6 +164,6 @@ open class Main {
}

open class Foo<T> {
constructor(c: Optional<Main.IntJsEnum?>?)
constructor(c: Optional<Main.IntJsEnum>?)
}
}

0 comments on commit 5e8c52e

Please sign in to comment.