diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/converter/BigDecimalConverter.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/converter/BigDecimalConverter.java index 64044642c..ed9b876e0 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/converter/BigDecimalConverter.java +++ b/vraptor-core/src/main/java/br/com/caelum/vraptor/converter/BigDecimalConverter.java @@ -73,7 +73,7 @@ public BigDecimal convert(String value, Class type) { } protected NumberFormat getNumberFormat() { - DecimalFormat fmt = ((DecimalFormat) DecimalFormat.getInstance(locale)); + DecimalFormat fmt = (DecimalFormat) DecimalFormat.getInstance(locale); fmt.setParseBigDecimal(true); return fmt; } diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/interceptor/DefaultTypeNameExtractor.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/interceptor/DefaultTypeNameExtractor.java index 4aa9add59..338831c58 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/interceptor/DefaultTypeNameExtractor.java +++ b/vraptor-core/src/main/java/br/com/caelum/vraptor/interceptor/DefaultTypeNameExtractor.java @@ -47,7 +47,7 @@ public String nameFor(Type generic) { } if (generic instanceof TypeVariable) { - return nameFor(((TypeVariable) generic)); + return nameFor((TypeVariable) generic); } return nameFor((Class) generic); @@ -68,7 +68,7 @@ private String nameFor(TypeVariable variable) { } private String nameFor(WildcardType wild) { - if ((wild.getLowerBounds().length != 0)) { + if (wild.getLowerBounds().length != 0) { return nameFor(wild.getLowerBounds()[0]); } else { return nameFor(wild.getUpperBounds()[0]); diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/gson/Exclusions.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/gson/Exclusions.java index ebf42ef99..a389c4c24 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/gson/Exclusions.java +++ b/vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/gson/Exclusions.java @@ -71,8 +71,8 @@ public boolean shouldSkipField(FieldAttributes f) { } private boolean isCompatiblePath(Entry> path, Class definedIn, String fieldName) { - return (path.getValue().equals(definedIn) && (path.getKey().equals(fieldName) || - path.getKey().endsWith("." + fieldName))); + return path.getValue().equals(definedIn) && (path.getKey().equals(fieldName) || + path.getKey().endsWith("." + fieldName)); } @Override diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/xstream/VRaptorClassMapper.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/xstream/VRaptorClassMapper.java index 6d626119a..b65c5fd39 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/xstream/VRaptorClassMapper.java +++ b/vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/xstream/VRaptorClassMapper.java @@ -78,7 +78,7 @@ public boolean shouldSerializeMember(Class definedIn, String fieldName) { } private boolean isCompatiblePath(Entry> path, Class definedIn, String fieldName) { - return (path.getValue().equals(definedIn) && (path.getKey().equals(fieldName) || path.getKey().endsWith("." + fieldName))); + return path.getValue().equals(definedIn) && (path.getKey().equals(fieldName) || path.getKey().endsWith("." + fieldName)); } @Override