mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
fixes based on Sonar reports
This commit is contained in:
parent
03e6defcfe
commit
518a3ef91d
@ -44,14 +44,15 @@ public class CaseBuilder {
|
||||
private static class CaseElement<A> {
|
||||
|
||||
@Nullable
|
||||
final EBoolean condition;
|
||||
private final EBoolean condition;
|
||||
|
||||
final Expr<A> target;
|
||||
private final Expr<A> target;
|
||||
|
||||
public CaseElement(@Nullable EBoolean condition, Expr<A> target){
|
||||
this.condition = condition;
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -45,9 +45,9 @@ public class CaseForEqBuilder<D> {
|
||||
private static class CaseElement<D> {
|
||||
|
||||
@Nullable
|
||||
final Expr<? extends D> eq;
|
||||
private final Expr<? extends D> eq;
|
||||
|
||||
final Expr<?> target;
|
||||
private final Expr<?> target;
|
||||
|
||||
public CaseElement(@Nullable Expr<? extends D> eq, Expr<?> target){
|
||||
this.eq = eq;
|
||||
|
||||
@ -199,12 +199,12 @@ public class Templates {
|
||||
add(Ops.QuantOps.ALL, "all {0}");
|
||||
}
|
||||
|
||||
protected void add(Operator<?> op, String pattern) {
|
||||
protected final void add(Operator<?> op, String pattern) {
|
||||
Template template = templateFactory.create(pattern);
|
||||
templates.put(op, template);
|
||||
}
|
||||
|
||||
protected void add(Operator<?> op, String pattern, int pre) {
|
||||
protected final void add(Operator<?> op, String pattern, int pre) {
|
||||
add(op, pattern);
|
||||
precedence.put(op, pre);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user