Clean up various warnings

This patch removes the obsolete imports and updates some of the
deprecated API.

Change-Id: I2c077e786b6acbb0fcbfae053a538757224281a8
This commit is contained in:
Deniz Türkoglu
2012-05-09 14:56:34 -07:00
parent cb0ca18ab1
commit d897d3d633
10 changed files with 6 additions and 13 deletions

View File

@@ -76,7 +76,7 @@ public class EditDeserializer implements JsonDeserializer<Edit>,
public JsonElement serialize(final Edit src, final Type typeOfSrc,
final JsonSerializationContext context) {
if (src == null) {
return new JsonNull();
return JsonNull.INSTANCE;
}
final JsonArray a = new JsonArray();
add(a, src);