diff --git a/config/checkstyle.xml b/config/checkstyle.xml index 4a7d038..424bac8 100644 --- a/config/checkstyle.xml +++ b/config/checkstyle.xml @@ -39,7 +39,7 @@ --> - + @@ -67,18 +67,18 @@ - + - + - + - + - + diff --git a/pom.xml b/pom.xml index 2cf1144..81478d2 100644 --- a/pom.xml +++ b/pom.xml @@ -210,7 +210,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.1.1 + 3.3.1 config/checkstyle.xml UTF-8 diff --git a/src/main/java/pl/szczepanik/silencio/processors/visitors/AbstractJacksonVisitor.java b/src/main/java/pl/szczepanik/silencio/processors/visitors/AbstractJacksonVisitor.java index 2178bc1..00f7194 100644 --- a/src/main/java/pl/szczepanik/silencio/processors/visitors/AbstractJacksonVisitor.java +++ b/src/main/java/pl/szczepanik/silencio/processors/visitors/AbstractJacksonVisitor.java @@ -14,8 +14,13 @@ * @author Damian Szczepanik (damianszczepanik@github) */ public abstract class AbstractJacksonVisitor extends AbstractVisitor { - - @SuppressWarnings("unchecked") + + /** + * Process map or array/list objects. + * + * @param key key + * @param value value that should be converted + */ protected void processComplex(String key, Object value) { if (isMap(value)) { processMap((Map) value); @@ -26,6 +31,11 @@ protected void processComplex(String key, Object value) { } } + /** + * Process map object. + * + * @param map value that should be converted + */ protected void processMap(Map map) { for (Map.Entry keyMap : map.entrySet()) { String key = keyMap.getKey(); @@ -39,6 +49,11 @@ protected void processMap(Map map) { } } + /** + * Process array/list object. + * + * @param list value that should be converted + */ private void processArray(String key, List list) { for (int i = 0; i < list.size(); i++) { Object value = list.get(i);