No effective change - code cleanup - simplify if

This commit is contained in:
Robin Bygrave committed 2015-07-31 14:51:34 +12:00
1 parent 069b83b78d
commit 53cf6c162c
8 files changed
+17 -71

No files matched your search

@@ -94,11 +94,8 @@ public class TunedQueryInfo implements Serializable {
* Return true if the fetches are essentially the same.
*/
public boolean isSame(OrmQueryDetail newQueryDetail) {
if (tunedDetail == null) {
return false;
}
return tunedDetail.isAutoFetchEqual(newQueryDetail);
}
return tunedDetail != null && tunedDetail.isAutoFetchEqual(newQueryDetail);
}
/**
* Tune the query by replacing its OrmQueryDetail with a tuned one.