fixed eclipse warnings

This commit is contained in:
Inderjeet Singh 2012-03-11 21:43:38 +00:00
parent 15c2ae7548
commit 14ebcc4ead
3 changed files with 3 additions and 0 deletions

View File

@ -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];
/**

View File

@ -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";

View File

@ -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) {