diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java b/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java index 6277f0c918..2985908bbf 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java @@ -23,7 +23,7 @@ * part's formatting *

*/ -public class ComponentBuilder +public final class ComponentBuilder { private BaseComponent current; diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/HoverEvent.java b/chat/src/main/java/net/md_5/bungee/api/chat/HoverEvent.java index 1b76956aac..0f6ec77d53 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/HoverEvent.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/HoverEvent.java @@ -7,7 +7,7 @@ @Getter @ToString @RequiredArgsConstructor -final public class HoverEvent +public final class HoverEvent { private final Action action; diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/KeybindComponent.java b/chat/src/main/java/net/md_5/bungee/api/chat/KeybindComponent.java index f5bcb174c0..5b074c6353 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/KeybindComponent.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/KeybindComponent.java @@ -10,7 +10,7 @@ @Setter @ToString @NoArgsConstructor -public class KeybindComponent extends BaseComponent +public final class KeybindComponent extends BaseComponent { /** diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java b/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java index cc7335f392..b4285835f7 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/TextComponent.java @@ -14,7 +14,7 @@ @Getter @Setter @AllArgsConstructor -public class TextComponent extends BaseComponent +public final class TextComponent extends BaseComponent { private static final Pattern url = Pattern.compile( "^(?:(https?)://)?([-\\w_\\.]{2,}\\.[a-z]{2,4})(/\\S*)?$" ); diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java b/chat/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java index 78b24ad6c2..958ebbdfce 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java @@ -16,7 +16,7 @@ @Setter @ToString @NoArgsConstructor -public class TranslatableComponent extends BaseComponent +public final class TranslatableComponent extends BaseComponent { private final ResourceBundle locales = ResourceBundle.getBundle( "mojang-translations/en_US" );