mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - Code cleanup, remove redundant variables
This commit is contained in:
@@ -507,8 +507,7 @@ public class DataSourceConfig {
|
||||
|
||||
String customProperties = properties.get("customProperties", null);
|
||||
if (customProperties != null && customProperties.length() > 0) {
|
||||
Map<String, String> custProps = StringHelper.delimitedToMap(customProperties, ";", "=");
|
||||
this.customProperties = custProps;
|
||||
this.customProperties = StringHelper.delimitedToMap(customProperties, ";", "=");;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -65,7 +65,6 @@ public class FileResourceContent implements ResourceContent {
|
||||
*/
|
||||
public InputStream getInputStream() throws IOException {
|
||||
|
||||
FileInputStream is = new FileInputStream(file);
|
||||
return is;
|
||||
return new FileInputStream(file);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,8 +43,7 @@ public class FileResourceSource extends AbstractResourceSource implements Resour
|
||||
|
||||
File f = new File(fullPath);
|
||||
if (f.exists()){
|
||||
FileResourceContent content = new FileResourceContent(f, entry);
|
||||
return content;
|
||||
return new FileResourceContent(f, entry);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -17,8 +17,7 @@ public class Prefix {
|
||||
public static String getProp(String prop) {
|
||||
String v = dec(prop);
|
||||
int p = v.indexOf(":");
|
||||
String r = v.substring(1, p);
|
||||
return r;
|
||||
return v.substring(1, p);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
@@ -63,9 +62,8 @@ public class Prefix {
|
||||
|
||||
encbytes[0] = az((byte) k, oa[0]);
|
||||
// dp("key:"+key+" encbytes[0]:"+(byte)encbytes[0]);
|
||||
int ios = key;
|
||||
for (int i = 1; i < (msgbytes.length + 1); i++) {
|
||||
encbytes[i] = az(msgbytes[i - 1], (oa[(i + ios) % oa.length]));
|
||||
for (int i = 1; i < (msgbytes.length + 1); i++) {
|
||||
encbytes[i] = az(msgbytes[i - 1], (oa[(i + key) % oa.length]));
|
||||
}
|
||||
return new String(encbytes);
|
||||
}
|
||||
|
||||
@@ -77,8 +77,7 @@ public class UpdatePlan implements SpiUpdatePlan {
|
||||
set.dmlBind(bind, bean);
|
||||
|
||||
// not strictly 'thread safe' but object assignment is atomic
|
||||
Long touched = Long.valueOf(System.currentTimeMillis());
|
||||
this.timeLastUsed = touched;
|
||||
this.timeLastUsed = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -84,9 +84,7 @@ public class RawSqlSelectClauseBuilder {
|
||||
SqlTree sqlTree = sqlSelect.getSqlTree();
|
||||
|
||||
CQueryPlan queryPlan = new CQueryPlan(request, sql, sqlTree, true, includeRowNumColumn, "");
|
||||
CQuery<T> compiledQuery = new CQuery<T>(request, predicates, queryPlan);
|
||||
|
||||
return compiledQuery;
|
||||
return new CQuery<T>(request, predicates, queryPlan);
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
|
||||
+1
-3
@@ -33,9 +33,7 @@ public class ReflectionBasedTypeBuilder {
|
||||
|
||||
ReflectionBasedScalarTypeConverter r = new ReflectionBasedScalarTypeConverter(constructor, readers[0]);
|
||||
|
||||
ScalarTypeWrapper st = new ScalarTypeWrapper(logicalType, scalarType, r);
|
||||
|
||||
return st;
|
||||
return new ScalarTypeWrapper(logicalType, scalarType, r);
|
||||
}
|
||||
|
||||
public ReflectionBasedCompoundType buildCompound(ImmutableMeta meta) {
|
||||
|
||||
Reference in New Issue
Block a user