File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/test/java/com/google/firebase/messaging Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -959,10 +959,7 @@ public void testExtendedAndroidNotificationParameters() throws IOException {
959959 .build ())
960960 .put ("default_light_settings" , false )
961961 .put ("visibility" , "public" )
962- // There is a problem with the JsonParser assignment to BigDecimal takes priority over
963- // all other number types and so this integer value is interpreted as a BigDecimal
964- // rather than an Integer.
965- .put ("notification_count" , BigDecimal .valueOf (10L ))
962+ .put ("notification_count" , new BigDecimal (10 ))
966963 .put ("proxy" , "DENY" )
967964 .build ())
968965 .build ();
@@ -971,7 +968,7 @@ public void testExtendedAndroidNotificationParameters() throws IOException {
971968 }
972969
973970 private static void assertJsonEquals (
974- Map <?, ?> expected , Object actual ) throws IOException {
971+ Map expected , Object actual ) throws IOException {
975972 assertEquals (expected , toMap (actual ));
976973 }
977974
You can’t perform that action at this time.
0 commit comments