Improve error message for unwrapped Collections #51
Labels
Comments
Thanks, another to apply the newcomer tag to. |
kwahsog
pushed a commit
to kwahsog/MutabilityDetector
that referenced
this issue
Dec 30, 2015
kwahsog
pushed a commit
to kwahsog/MutabilityDetector
that referenced
this issue
Jan 2, 2016
Grundlefleck
added a commit
that referenced
this issue
Jan 4, 2016
#51 - Error message improved for unwrapped Collections
Now not so misleading, thanks @kwahsog! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the error message for a Class having a collection as a field which is initialized in constructor is: "Attempts to wrap mutable collection type using a non-whitelisted unmodifiable wrapper method". This is misleading, since in this case nothing is getting wrapped at all.
The goal of this issue is to improve this error message to something like "Not wrapped collection type". This mutability reason is detected by MutableTypeToFieldChecker.
Here a test which asserts the current error message
The text was updated successfully, but these errors were encountered: