val infoString = "";
if (!Backend.HasErrors()) {
for (val budgetPlan : planningInfo) {
infoString += budgetPlan.getMonth() + "[" + budgetPlan.getNumber() + "]: " + budgetPlan.getDescription();
}
}
You can't do this with @val. @val expands to "final T", and final means no reassignment, hence the name - val, not var. Perhaps somebody would come with @var proposal but for now it looks like you have to use explicit String instead
--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.