<commit_before>W1009 Getter Setter Method Name Conflict
Errors and Warnings
noreferences

@@description

<h2>Umple semantic warning reported when a class redefines a getter or setter method on a
declared attribute</h2>

<p>
Umple generates a setter and getter for most attributes, and will issue a warning if
these methods are redefined.
</p>


@@example
@@source manualexamples/W1009GetterSetterConflict1.ump
@@endexample

@@example
@@source manualexamples/W1009GetterSetterConflict2.ump
@@endexample<commit_msg>Clarifying alternative solutions to warning 1009<commit_after>W1009 Getter Setter Method Name Conflict
Errors and Warnings
noreferences

@@description

<h2>Umple semantic warning reported when a class redefines a getter or setter method on a
declared attribute</h2>

<p>
Umple generates a setter and getter for most attributes, and will issue a warning if
these methods are redefined. The attempt to redefine the method will be ignored. Developers can either rename the redefined method or else use a before or after statement if they want to add functionality to the  getter or setter method.
</p>


@@example
@@source manualexamples/W1009GetterSetterConflict1.ump
@@endexample

@@example
@@source manualexamples/W1009GetterSetterConflict2.ump
@@endexample
{'fraction_non_alphanumeric': 0.05354330708661417, 'fraction_numerical': 0.028346456692913385, 'mean_word_length': 5.945355191256831, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3510459', 'n_tokens_mistral': 389, 'n_tokens_neox': 348, 'n_words': 154}