Commit 34bdc3ea authored by Louis QUESTEL's avatar Louis QUESTEL Committed by Gerson SUNYE
Browse files

bug correction in ExtendsObject rule and in ShortInstantiation

parent 5394d7d3
......@@ -46,7 +46,7 @@ helper def: extendsObject() : Set(smm!Measure) =
-- select all class who extend Object
->select(it3| it3.superClass.type.name = 'java.lang.Object' or it3.superClass.type.name = 'Object')
-- collect all results and send an error message
->collect(it4|thisModule.MeasureDoNotExtendJavaLangError(it4))
->collect(it4|thisModule.MeasureExtendsObject(it4))
;
--------------------------------------------- UnnecessaryReturn ---------------------------------------------
......
......@@ -104,7 +104,7 @@ helper def: shortInstantiation() : Set(smm!Measure) =
-- Select all class who declare a Short type
->select(it| it.method.oclIsTypeOf(java!ConstructorDeclaration) and it.method.name = 'Short')
-- collect every results and send an error message
->collect(it2|thisModule.MeasureLongInstantiation(it2.originalCompilationUnit))
->collect(it2|thisModule.MeasureShortInstantiation(it2.originalCompilationUnit))
;
--------------------------------------------- LongInstantiation ---------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment