No effective change - Code cleanup, simplified if

This commit is contained in:
Robin Bygrave committed 2015-07-31 13:23:49 +12:00
1 parent 88340618af
commit adef15ce2b
14 files changed
+19 -79

No files matched your search

@@ -357,10 +357,7 @@ public class OrmQueryDetail implements Serializable {
* Return true if this is actually the root level of a +query/+lazy loading query.
*/
private boolean isLazyLoadManyRoot(String lazyLoadManyPath, OrmQueryProperties chunk) {
if (lazyLoadManyPath != null && lazyLoadManyPath.equals(chunk.getPath())) {
return true;
}
return false;
return lazyLoadManyPath != null && lazyLoadManyPath.equals(chunk.getPath());
}
/**
@@ -184,15 +184,6 @@ public class OrmQueryDetailParser {
}
private boolean isFindFetchEnd() {
if (isFetch()) {
return true;
}
if (parser.isMatch("where")) {
return true;
}
if (parser.isMatch("order", "by")) {
return true;
}
return false;
return isFetch() || parser.isMatch("where") || parser.isMatch("order", "by");
}
}