Annotations
By Moro
Daniel-San, I saw your PR. Why are you not using Annotations?
Where?
Daniel-San, I tried to pass 123, I got a RuntimeException.
How you can improve that?
I don’t know.
How?
Daniel-San, please use Annotations.
Just add @DrawableRes in your argument. It will help other workmates.
Daniel-San, there are many other Annotations like that to signalize Strings, Colors, Ids…
Nice!
If we don’t have an annotation, and we need?
Daniel-San, time to create your own annotation.
Daniel-San, create your annotation:
You can create other kinds of annotations such as using @IntDef, @StringDef, …
Daniel-San, let’s test:
By Moro