This could be a quirk of the IDE I am using, Android Studio, or it could be something more nuanced that I don't understand.
I have a method
setCustomFont that appears as a property in the Structure view in my IDE. It appears that AS is making this decision to class it as a property based on its signature and the set / get prefix of the method name. The field that it thinks I am mutating is
customFont however this does not exist.
I changed the method name to
applyCustomFont and now the Structure view in AS reflects something closer to the truth in my class.
I was wondering if this is by design? Should I try and stay clear of set / get unless I have an associated field?
Edit: I am also wondering about sensible method names regardless of whether the IDE has a Structure view.