mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
reverted constantToLabel usage
This commit is contained in:
parent
a29ea43bf2
commit
e762d27430
@ -271,7 +271,7 @@ public abstract class SerializerBase<S extends SerializerBase<S>> implements Vis
|
||||
public Void visit(Constant<?> expr, Void context) {
|
||||
if (!getConstantToLabel().containsKey(expr.getConstant())) {
|
||||
String constLabel = constantPrefix + (getConstantToLabel().size() + 1);
|
||||
constantToLabel.put(expr.getConstant(), constLabel);
|
||||
getConstantToLabel().put(expr.getConstant(), constLabel);
|
||||
append(constLabel);
|
||||
} else {
|
||||
append(getConstantToLabel().get(expr.getConstant()));
|
||||
@ -287,7 +287,7 @@ public abstract class SerializerBase<S extends SerializerBase<S>> implements Vis
|
||||
} else {
|
||||
paramLabel = paramPrefix + param.getName();
|
||||
}
|
||||
constantToLabel.put(param, paramLabel);
|
||||
getConstantToLabel().put(param, paramLabel);
|
||||
append(paramLabel);
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user