Skip to main content
. 2019 Aug 19;5:e212. doi: 10.7717/peerj-cs.212

Table 2. Ten Modelio anti-patterns and their correction way.

The anti-pattern The method of correction
NameSpaces have the same name Change the name of the conflicting NameSpaces
NameSpace is Leaf and is derived Make the NameSpace non-final
NameSpace is Leaf and is abstract Make the NameSpace non-final
Generalization between two incompatible elements Change the source or the target in order to link two compatible elements
A public association between two Classifiers one of them is public and the other has different visibility Change the visibility of the target class to public
Classifier has several operations with the same signature Rename one of the Operations or change their parameters
Classifier has attributes with the same name Rename the Classifiers Attributes
MultiplicityMin must be inferior to MultiplicityMax Change the value of the minimum multiplicity to be less than the maximum multiplicity
The status of an Attribute is abstract and class at the same time Set only one of the statuses to true
A destructor has parameters Remove these parameters or remove the destructor stereotype from the method