fixed eclipse warnings
This commit is contained in:
parent
15c2ae7548
commit
14ebcc4ead
@ -59,6 +59,7 @@ public final class StringMap<V> extends AbstractMap<String, V> {
|
||||
* is set to half the minimum, so that the first resize will create a
|
||||
* minimum-sized table.
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
private static final Entry[] EMPTY_TABLE = new LinkedEntry[MINIMUM_CAPACITY >>> 1];
|
||||
|
||||
/**
|
||||
|
@ -39,6 +39,7 @@ public class GsonBuilderTest extends TestCase {
|
||||
assertEquals("{\"d\":\"d\"}", gson.toJson(new HasModifiers()));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
static class HasModifiers {
|
||||
private String a = "a";
|
||||
volatile String b = "b";
|
||||
|
@ -85,6 +85,7 @@ public class InstanceCreatorTest extends TestCase {
|
||||
|
||||
// This regressed in Gson 2.0 and 2.1
|
||||
public void testInstanceCreatorForCollectionType() {
|
||||
@SuppressWarnings("serial")
|
||||
class SubArrayList<T> extends ArrayList<T> {}
|
||||
InstanceCreator<List<String>> listCreator = new InstanceCreator<List<String>>() {
|
||||
public List<String> createInstance(Type type) {
|
||||
|
Loading…
Reference in New Issue
Block a user