mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 12:59:00 +00:00
squid:S1699 - Constructors should only call non-overridable methods
This commit is contained in:
@@ -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