fixed Sonar issues

This commit is contained in:
Timo Westkämper 2011-07-18 13:38:57 +00:00
parent 1936aba457
commit eb14765f8d
2 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,7 @@ public final class Alias {
if (rv != null) {
return rv;
}else if (arg instanceof EntityPath<?>){
return (EntityPathBase<D>)arg;
return (EntityPathBase<D>)arg; //NOSONAR
} else if (arg instanceof ManagedObject) {
return (EntityPathBase<D>) ((ManagedObject) arg).__mappedPath();
} else {

View File

@ -202,6 +202,7 @@ public abstract class AbstractJPAQuery<Q extends AbstractJPAQuery<Q>> extends JP
* @param query
* @return
*/
@Nullable
private Object getSingleResult(Query query) {
if (factoryExpressionUsed) {
Object result = query.getSingleResult();