diff --git a/avaje-jex/src/main/java/io/avaje/jex/core/RangeWriter.java b/avaje-jex/src/main/java/io/avaje/jex/core/RangeWriter.java index 4f027629..c85520d2 100644 --- a/avaje-jex/src/main/java/io/avaje/jex/core/RangeWriter.java +++ b/avaje-jex/src/main/java/io/avaje/jex/core/RangeWriter.java @@ -10,7 +10,7 @@ import io.avaje.jex.http.Context; import io.avaje.jex.http.HttpStatus; -class RangeWriter { +final class RangeWriter { private static final int DEFAULT_BUFFER_SIZE = 16384; @@ -62,8 +62,7 @@ static void write(Context ctx, InputStream inputStream, long totalBytes, long ch } } - private static void write(OutputStream outputStream, InputStream inputStream, long from, long to) - throws IOException { + private static void write(OutputStream outputStream, InputStream inputStream, long from, long to) throws IOException { byte[] buffer = new byte[DEFAULT_BUFFER_SIZE]; long toSkip = from; while (toSkip > 0) { diff --git a/avaje-jex/src/main/java/io/avaje/jex/core/RoutingHandler.java b/avaje-jex/src/main/java/io/avaje/jex/core/RoutingHandler.java index 70c013e2..bccdd288 100644 --- a/avaje-jex/src/main/java/io/avaje/jex/core/RoutingHandler.java +++ b/avaje-jex/src/main/java/io/avaje/jex/core/RoutingHandler.java @@ -38,9 +38,8 @@ public void handle(HttpExchange exchange) { var ctx = new JdkContext(mgr, exchange, uri, Set.of()); ctx.setMode(Mode.EXCHANGE); mgr.handleException( - ctx, - new NotFoundException( - "No route matching http method %s, with path %s".formatted(routeType.name(), uri))); + ctx, + new NotFoundException("No route matching http method %s, with path %s".formatted(routeType.name(), uri))); } else { route.inc(); try {