Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions avaje-jex/src/main/java/io/avaje/jex/core/RangeWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand Down
5 changes: 2 additions & 3 deletions avaje-jex/src/main/java/io/avaje/jex/core/RoutingHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down