Skip to content

Commit 9d0d98c

Browse files
committed
Merge pull request #27 from shipunyc/master
Minor fixes on code styling.
2 parents c43db81 + 36d8075 commit 9d0d98c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/com/microsoft/azure/documentdb/JsonSerializable.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public <T extends Object> T getObject(String propertyName, Class<T> c) {
303303
}
304304
} else {
305305
// POJO
306-
checkForValidPOJO(c);
306+
JsonSerializable.checkForValidPOJO(c);
307307

308308
try {
309309
return new ObjectMapper().readValue(jsonObj.toString(), c);
@@ -327,6 +327,7 @@ private static void checkForValidPOJO(Class<?> c){
327327
String.format("%s must be static if it's a member class.", c.getName()));
328328
}
329329
}
330+
330331
/**
331332
* Gets an object collection.
332333
*
@@ -351,7 +352,7 @@ public <T extends Object> Collection<T> getCollection(String propertyName, Class
351352
} else if (JsonSerializable.class.isAssignableFrom(c)) {
352353
isJsonSerializable = true;
353354
} else {
354-
checkForValidPOJO(c);
355+
JsonSerializable.checkForValidPOJO(c);
355356
mapper = new ObjectMapper();
356357
}
357358

@@ -446,7 +447,7 @@ public <T extends Object> T toObject(Class<T> c) {
446447
return c.cast(this.propertyBag);
447448
} else {
448449
// POJO
449-
checkForValidPOJO(c);
450+
JsonSerializable.checkForValidPOJO(c);
450451
try {
451452
return new ObjectMapper().readValue(this.toString(), c);
452453
} catch (IOException e) {

0 commit comments

Comments
 (0)