From d39051a251c86344e800d90b522d5ff74e1b7b3d Mon Sep 17 00:00:00 2001 From: Cedric Date: Tue, 16 Nov 2021 17:25:30 +0100 Subject: [PATCH] fix(connection): Make various classes final as they should be --- .../de/wuespace/telestion/services/connection/Broadcaster.java | 2 +- .../de/wuespace/telestion/services/connection/StaticSender.java | 2 +- .../telestion/services/connection/tcp/TcpDispatcher.java | 2 +- .../wuespace/telestion/services/connection/tcp/TcpTimeouts.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/Broadcaster.java b/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/Broadcaster.java index 2cb6f77a2..967c58b46 100644 --- a/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/Broadcaster.java +++ b/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/Broadcaster.java @@ -10,7 +10,7 @@ import java.util.*; -public class Broadcaster extends AbstractVerticle { +public final class Broadcaster extends AbstractVerticle { public final static int NO_BROADCASTING = -1; public final static int DEFAULT_ID = 0; diff --git a/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/StaticSender.java b/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/StaticSender.java index a1fa268c6..76ff44362 100644 --- a/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/StaticSender.java +++ b/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/StaticSender.java @@ -8,7 +8,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class StaticSender extends AbstractVerticle { +public final class StaticSender extends AbstractVerticle { public record Configuration(@JsonProperty String inAddress, @JsonProperty String outAddress, diff --git a/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/tcp/TcpDispatcher.java b/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/tcp/TcpDispatcher.java index 156706b02..499a45af5 100644 --- a/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/tcp/TcpDispatcher.java +++ b/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/tcp/TcpDispatcher.java @@ -10,7 +10,7 @@ import java.text.BreakIterator; import java.util.Arrays; -public class TcpDispatcher extends AbstractVerticle { +public final class TcpDispatcher extends AbstractVerticle { @Override public void start(Promise startPromise) { diff --git a/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/tcp/TcpTimeouts.java b/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/tcp/TcpTimeouts.java index c28bb27d5..7f01e37cf 100644 --- a/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/tcp/TcpTimeouts.java +++ b/modules/telestion-services/src/main/java/de/wuespace/telestion/services/connection/tcp/TcpTimeouts.java @@ -2,7 +2,7 @@ import java.time.Duration; -public class TcpTimeouts { +public final class TcpTimeouts { /** * Close tcp connection after first received packet. */