Commit 2f4ad8d5 authored by Gerson SUNYE's avatar Gerson SUNYE
Browse files

Merge branch 'master' into 'master'

Correction  finalizeShouldBeProtected #830

See merge request naomod/mde/projet-2019!153
parents 00a72f53 5e8127ff
...@@ -177,7 +177,8 @@ helper def: dontImportSun() : Set(smm!Measure) = ...@@ -177,7 +177,8 @@ helper def: dontImportSun() : Set(smm!Measure) =
-- Rule for metrics FinalizeShouldBeProtected -- Rule for metrics FinalizeShouldBeProtected
helper def: finalizeShouldBeProtected() : Set(smm!Measure) = helper def: finalizeShouldBeProtected() : Set(smm!Measure) =
java!MethodDeclaration.allInstances() java!MethodDeclaration.allInstances()
->select(m | m.name = 'finalize' and m.modifier <> 'protected') ->select(m | m.modifier <> OclUndefined)
->select(m | m.name = 'finalize' and m.modifier.visibility.toString() <> 'protected')
->collect(m | thisModule.MesureFinalizeShouldBeProtected(m)); ->collect(m | thisModule.MesureFinalizeShouldBeProtected(m));
......
Markdown is supported
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