mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
No effective change - code cleanup - remove unnecessary boxing
This commit is contained in:
1 parent
ae9a03e58c
commit
5bb97ee42f
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user