mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fix warnings 2 (#1130)
* FIX: warnings (add generics, overrides, fix imports) - should be no effecive code change * replaced deprecated methods by default methods * FIX: more compiler warnings * FIX more warnings - no code changes * FIX: deprecated call to JsonParseException * Remove unused code, check unused variables
This commit is contained in:
committed by
Rob Bygrave
parent
ac6708e0d0
commit
b66f18bfd6
@@ -7,6 +7,8 @@ import io.ebean.text.json.JsonContext;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -37,7 +39,8 @@ public class TestJsonSimple extends BaseTestCase {
|
||||
String jsonText = sb.toString();
|
||||
|
||||
Object el = EJson.parse(jsonText);
|
||||
|
||||
assertThat(el).isNotNull();
|
||||
|
||||
Map<String, Object> e2 = EJson.parseObject("{\"a\":12, \"name\":{\"first\":\"rob\", \"last\":\"byg\"}}");
|
||||
|
||||
Assert.assertEquals(12L, e2.get("a"));
|
||||
|
||||
Reference in New Issue
Block a user