No effective change - code cleanup - remove unnecessary boxing

This commit is contained in:
Robin Bygrave
2015-08-01 20:12:09 +12:00
parent ae9a03e58c
commit 5bb97ee42f
2 changed files with 2 additions and 2 deletions
@@ -24,7 +24,7 @@ public class GeneratedCounterInteger implements GeneratedProperty {
*/
public Object getUpdateValue(BeanProperty prop, EntityBean bean) {
Integer i = (Integer) prop.getValue(bean);
return i.intValue() + 1;
return i + 1;
}
/**
@@ -24,7 +24,7 @@ public class GeneratedCounterLong implements GeneratedProperty {
*/
public Object getUpdateValue(BeanProperty prop, EntityBean bean) {
Long i = (Long) prop.getValue(bean);
return i.longValue() + 1;
return i + 1;
}
/**