mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-04 14:13:21 +00:00
squid:S1699 - Constructors should only call non-overridable methods
This commit is contained in:
1 parent
dfef28e93e
commit
50310aaeaf
5 files changed
+7
-7
No files matched your search
@@ -46,7 +46,7 @@ public class Item {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(ItemType type) {
|
||||
public final void setType(ItemType type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user