mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Static code analysis. (#1017)
This commit is contained in:
committed by
Rob Bygrave
parent
a120c2aaee
commit
335c4de109
@@ -29,8 +29,7 @@ public class ChainedBeanPostLoad implements BeanPostLoad {
|
||||
if (list.contains(c)) {
|
||||
return this;
|
||||
} else {
|
||||
List<BeanPostLoad> newList = new ArrayList<>();
|
||||
newList.addAll(list);
|
||||
List<BeanPostLoad> newList = new ArrayList<>(list);
|
||||
newList.add(c);
|
||||
|
||||
return new ChainedBeanPostLoad(newList);
|
||||
@@ -44,8 +43,7 @@ public class ChainedBeanPostLoad implements BeanPostLoad {
|
||||
if (!list.contains(c)) {
|
||||
return this;
|
||||
} else {
|
||||
ArrayList<BeanPostLoad> newList = new ArrayList<>();
|
||||
newList.addAll(list);
|
||||
List<BeanPostLoad> newList = new ArrayList<>(list);
|
||||
newList.remove(c);
|
||||
|
||||
return new ChainedBeanPostLoad(newList);
|
||||
|
||||
Reference in New Issue
Block a user