Skip to content

Commit 86dee41

Browse files
committed
fix: gradle 8.9 support
1 parent 853253b commit 86dee41

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test-app/runtime/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ android {
151151
allprojects {
152152
afterEvaluate {
153153
tasks.withType(JavaCompile).configureEach {
154-
options.compilerArgs << "-Xlint:all" << "-Werror"
154+
// remove after "-Xlint:-classfile" https://issuetracker.google.com/issues/359561906
155+
// todo remove "-Xlint:-this-escape" after updating runtime-binding-generator
156+
options.compilerArgs << "-Xlint:all" << "-Werror" << "-Xlint:-classfile" << "-Xlint:-this-escape"
155157
}
156158
}
157159
}

test-app/runtime/src/main/java/com/tns/NativeScriptAbstractMap.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public abstract class NativeScriptAbstractMap<K, V> implements Map<K, V> {
4949
*
5050
* @since 1.6
5151
*/
52-
public static class SimpleImmutableEntry<K, V> implements Map.Entry<K, V>, Serializable {
52+
public static class SimpleImmutableEntry<K extends Serializable, V extends Serializable> implements Map.Entry<K, V>, Serializable {
5353
private static final long serialVersionUID = 7138329143949025153L;
5454

5555
private final K key;
@@ -111,7 +111,7 @@ public String toString() {
111111
*
112112
* @since 1.6
113113
*/
114-
public static class SimpleEntry<K, V> implements Map.Entry<K, V>, Serializable {
114+
public static class SimpleEntry<K extends Serializable, V extends Serializable> implements Map.Entry<K, V>, Serializable {
115115
private static final long serialVersionUID = -8499721149061103585L;
116116

117117
private final K key;

0 commit comments

Comments
 (0)