We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imagine you have this code:
MyConjureThing.Builder builder = MyConjureThing.builder(); Set<String> myValues = getValues(); for (String myValue : myValues) { Map<String, Integer> myMapping = calculateMap(myValue); builder.mapping(myMapping); } MyConjureThing thing = builder.build();
What this is going to do is leave you with only the myMapping from the last iteration, because instead of:
myMapping
builder.mapping(myMapping);
you should have written:
builder.putAllMappings(myMapping);
It would be great if we could have an error-prone check to catch this.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
Imagine you have this code:
What this is going to do is leave you with only the
myMapping
from the last iteration, because instead of:you should have written:
It would be great if we could have an error-prone check to catch this.
The text was updated successfully, but these errors were encountered: