mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
fixed Sonar issues
This commit is contained in:
parent
1936aba457
commit
eb14765f8d
@ -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 {
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user