Skip to content

Commit

Permalink
Make bungeecord-chat API classes final - the API does not (nor should…
Browse files Browse the repository at this point in the history
…) support subclassing.
  • Loading branch information
md-5 committed Dec 26, 2017
1 parent 9fd9843 commit dda0638
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Expand Up @@ -23,7 +23,7 @@
* part's formatting
* </p>
*/
public class ComponentBuilder
public final class ComponentBuilder
{

private BaseComponent current;
Expand Down
Expand Up @@ -7,7 +7,7 @@
@Getter
@ToString
@RequiredArgsConstructor
final public class HoverEvent
public final class HoverEvent
{

private final Action action;
Expand Down
Expand Up @@ -10,7 +10,7 @@
@Setter
@ToString
@NoArgsConstructor
public class KeybindComponent extends BaseComponent
public final class KeybindComponent extends BaseComponent
{

/**
Expand Down
Expand Up @@ -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*)?$" );
Expand Down
Expand Up @@ -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" );
Expand Down

0 comments on commit dda0638

Please sign in to comment.