fixes based on Sonar reports

This commit is contained in:
Timo Westkämper 2010-02-22 19:23:27 +00:00
parent 03e6defcfe
commit 518a3ef91d
3 changed files with 7 additions and 6 deletions

View File

@ -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;
}
}
/**

View File

@ -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;

View File

@ -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);
}