#1738 - Refactor tidy suppressWarnings and access

This commit is contained in:
rob bygrave
2019-06-28 23:20:57 +12:00
parent 30a0935300
commit e6c9f151c1
12 changed files with 25 additions and 27 deletions
@@ -198,6 +198,7 @@ public class CQuery<T> implements DbReadContext, CancelableQuery, SpiProfileTran
/**
* Create the Sql select based on the request.
*/
@SuppressWarnings("unchecked")
public CQuery(OrmQueryRequest<T> request, CQueryPredicates predicates, CQueryPlan queryPlan) {
this.request = request;
this.audit = request.isAuditReads();
@@ -569,13 +570,11 @@ public class CQuery<T> implements DbReadContext, CancelableQuery, SpiProfileTran
return null;
}
@SuppressWarnings("unchecked")
BeanCollection<T> readCollection() throws SQLException {
while (hasNext()) {
EntityBean bean = next();
help.add(collection, bean, false);
help.add(collection, next(), false);
}
updateExecutionStatistics();
return collection;
}