mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
Static code analysis. (#1017)
This commit is contained in:
1 parent
a120c2aaee
commit
335c4de109
16 files changed
+20
-85
No files matched your search
@@ -23,7 +23,6 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.persistence.PersistenceException;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -347,7 +347,7 @@ class DefaultDbSqlContext implements DbSqlContext {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DefaultDbSqlContext: " + sb.toString();
|
||||
return "DefaultDbSqlContext: " + sb;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import io.ebeaninternal.api.ManyWhereJoins;
|
||||
import io.ebeaninternal.server.deploy.BeanProperty;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
|
||||
@@ -39,10 +40,7 @@ public class SqlTreeProperties {
|
||||
}
|
||||
|
||||
public void add(BeanProperty[] props) {
|
||||
//noinspection ManualArrayToCollectionCopy
|
||||
for (BeanProperty prop : props) {
|
||||
propsList.add(prop);
|
||||
}
|
||||
propsList.addAll(Arrays.asList(props));
|
||||
}
|
||||
|
||||
public void add(BeanProperty prop) {
|
||||
|
||||
Reference in new issue
Block a user