mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 12:59:00 +00:00
squid:S2974 - Classes without public constructors should be final
This commit is contained in:
@@ -27,7 +27,7 @@ package com.iluwatar.builder;
|
||||
* Hero, the class with many parameters.
|
||||
*
|
||||
*/
|
||||
public class Hero {
|
||||
public final class Hero {
|
||||
|
||||
private final Profession profession;
|
||||
private final String name;
|
||||
|
||||
Reference in New Issue
Block a user