-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Allow to provide a default value for @DefaultStringSet #1555
Allow to provide a default value for @DefaultStringSet #1555
Conversation
|
Seems to be cool, i added two comments. Could you please rebase this onto |
…_for_DefaultStringSet Allow to provide a default value for @DefaultStringSet
|
Hello, I am having some trouble with this change, it seems that this default value is mandatory. Unfortunately, I am getting my default value through a so this change doesn't quite suit me. Can't you keep it as optional ? (by the way the comment in the DefaultStringSet still claims that Cheers |
|
The JavaDoc has to be updated for sure. But we require the default value on any |
|
thanks for the response. I noticed that does not work. (it does work but generates code that doesn't compile) does work, but it's not quite the same. In version 3.3.2 would get generated, we get a and with we get a (doesn't compile) |
|
Thanks for checking! "" is shortcut for {""} so that is okay. But we should
|
|
Last one, food for thought. Can't the @DefaultRes also add support for Set and link the default value to an R.array.* value ? |
|
@WonderCsabo cant fix it before 15.11. and the i have to find time. |
|
i created PR #1624 with a fix and javadoc update |
|
Lovely! Will do, thanks |
based on #1553
This PR allows to provide a default value for a
@DefaultStringSetannotated method in a@SharedPrefinterface.Usage:
That generates: