Skip to content

Commit 8068a9b

Browse files
Suppress Unicode warnings (#3116)
1 parent cafe359 commit 8068a9b

File tree

2 files changed

+4
-2
lines changed
  • firebase-database/src/test/java/com/google/firebase/database
  • firebase-firestore/src/test/java/com/google/firebase/firestore/util

2 files changed

+4
-2
lines changed

firebase-database/src/test/java/com/google/firebase/database/MapperTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ public String getValue4() {
570570
}
571571
}
572572

573-
@SuppressWarnings("ConstantField")
573+
@SuppressWarnings({"ConstantField", "NonAsciiCharacters", "UnicodeInCode"})
574574
private static class UnicodeBean {
575575
private String 漢字;
576576

@@ -1468,6 +1468,7 @@ public void roundTripCaseSensitiveFieldBean4() {
14681468
}
14691469

14701470
@Test
1471+
@SuppressWarnings("UnicodeInCode")
14711472
public void roundTripUnicodeBean() {
14721473
UnicodeBean bean = new UnicodeBean();
14731474
bean.漢字 = "foo";

firebase-firestore/src/test/java/com/google/firebase/firestore/util/MapperTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ public String getValue4() {
629629
}
630630
}
631631

632-
@SuppressWarnings({"ConstantField", "NonAsciiCharacters"})
632+
@SuppressWarnings({"ConstantField", "NonAsciiCharacters", "UnicodeInCode"})
633633
private static class UnicodeBean {
634634
private String 漢字;
635635

@@ -1721,6 +1721,7 @@ public void roundTripCaseSensitiveFieldBean4() {
17211721
}
17221722

17231723
@Test
1724+
@SuppressWarnings("UnicodeInCode")
17241725
public void roundTripUnicodeBean() {
17251726
UnicodeBean bean = new UnicodeBean();
17261727
bean.漢字 = "foo";

0 commit comments

Comments
 (0)