Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This rule is closely related to MET04-J. Ensure that constructors do not call overridable methods.

Noncompliant Code Example

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7adb82b6a8cb6f4b-12f7a27d-44334116-988fac53-050976003cb3c3799250f583"><ac:plain-text-body><![CDATA[

[[Bloch 2008

AA. Bibliography#Bloch 08]]

Item 11: Override clone judiciously

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7266392a62bddd0f-33f616c0-421a4cc3-a3e3982a-70cd39fbdc79cb44ffdc9157"><ac:plain-text-body><![CDATA[

[[Gong 2003

AA. Bibliography#Gong 03]]

 

]]></ac:plain-text-body></ac:structured-macro>

...

MET04-J. Ensure that constructors do not call overridable methodsImage Added      05. Methods (MET)      MET11-J. Never declare a class method that hides a method declared in a superclass or superinterface