Skip to content

Commit 2c40343

Browse files
author
anquetil
committed
fix: corrected #isAbstract for DeadCodeHeuristics
1 parent 3194c26 commit 2c40343

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/MooseIDE-DeadCode/MiDeadCodeAbstractHeuristic.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Class {
2323
{ #category : 'testing' }
2424
MiDeadCodeAbstractHeuristic class >> isAbstract [
2525

26-
^self name includesSubstring: 'Abstract'
26+
^self name includesSubstring: 'MiDeadCodeAbstract'
2727
]
2828

2929
{ #category : 'accessing' }

src/MooseIDE-DeadCode/MiDeadCodeJavaHasOverridingHeuristic.class.st

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"
2+
A method having an ""@Override"" sub-method (in a subclass) is assumed not-dead,
3+
because one cannot remove the overriden method
4+
(@Override makes it mandatory to have a super-method)
5+
"
16
Class {
27
#name : 'MiDeadCodeJavaHasOverridingHeuristic',
38
#superclass : 'MiDeadCodeAbstractJavaHeuristic',

0 commit comments

Comments
 (0)