Skip to content

Commit 31a8e6f

Browse files
committed
review edits
1 parent 598729b commit 31a8e6f

File tree

8 files changed

+14
-62
lines changed

8 files changed

+14
-62
lines changed

src/main/java/io/fusionauth/http/ConnectionClosedException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, FusionAuth, All Rights Reserved
2+
* Copyright (c) 2023-2025, FusionAuth, All Rights Reserved
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/fusionauth/http/HTTPValues.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021-2023, FusionAuth, All Rights Reserved
2+
* Copyright (c) 2021-2025, FusionAuth, All Rights Reserved
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/io/fusionauth/http/server/io/HTTPInputStream.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ private void commit() {
194194
logger.trace("Client indicated it was sending an entity-body in the request. Handling body using chunked encoding.");
195195
delegate = new ChunkedInputStream(delegate, 1024, bodyBytes);
196196
bodyBytes = null;
197-
bodyBytesIndex = 0;
198197

199198
if (instrumenter != null) {
200199
instrumenter.chunkedRequest();

src/main/java/io/fusionauth/http/server/io/HTTPOutputStream.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ private void commit(boolean closing) throws IOException {
216216
}
217217

218218
// +++++++++++ Step 2: Write the preamble. This must be first without any other output stream interference +++++++++++
219-
// System.out.println(" > HTTPOutputStream commit() -- writeResponsePreamble");
220219
HTTPTools.writeResponsePreamble(response, delegate);
221220

222221
// +++++++++++ Step 3: Bail if there is no content +++++++++++

src/main/java/io/fusionauth/http/util/BetterByteBuffer.java

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/test/java/io/fusionauth/http/BaseTest.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ public void beforeMethod() {
232232
verbose = false;
233233
}
234234

235+
@DataProvider
236+
public Object[][] connections() {
237+
return new Object[][]{
238+
{Connections.Close},
239+
{Connections.KeepAlive}
240+
};
241+
}
242+
235243
@AfterMethod
236244
public void flush() {
237245
FileLogger fl = (FileLogger) FileLoggerFactory.FACTORY.getLogger(BaseTest.class);
@@ -319,14 +327,6 @@ public Object[][] schemes() {
319327
};
320328
}
321329

322-
@DataProvider
323-
public Object[][] connections() {
324-
return new Object[][]{
325-
{Connections.Close},
326-
{Connections.KeepAlive}
327-
};
328-
}
329-
330330
/**
331331
* @return The possible response buffer lengths and schemes.
332332
*/
@@ -427,8 +427,7 @@ protected void println(Object o) {
427427
protected void sleep(long millis) {
428428
try {
429429
Thread.sleep(millis);
430-
} catch (InterruptedException e) {
431-
// Ignore
430+
} catch (InterruptedException ignore) {
432431
}
433432
}
434433

src/test/java/io/fusionauth/http/HTTP11SocketTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public void invalid_version() throws Exception {
275275

276276
@Test
277277
public void keepAlive_bodyNeverRead() throws Exception {
278-
// Use case: Using keep alive, and the request handler doesn't ready the payload.
278+
// Use case: Using keep alive, and the request handler doesn't read the payload.
279279
// - Ensure the HTTP worker is able to drain the bytes so the next request starts with an empty byte array.
280280
withRequest("""
281281
GET / HTTP/1.1\r

src/test/java/io/fusionauth/http/security/SecurityToolsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, FusionAuth, All Rights Reserved
2+
* Copyright (c) 2022-2025, FusionAuth, All Rights Reserved
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@ public class SecurityToolsTest extends BaseTest {
3838

3939
@BeforeClass
4040
public static void setUp() {
41-
projectDir = java.nio.file.Path.of("");
41+
projectDir = Path.of("");
4242
}
4343

4444
@Test

0 commit comments

Comments
 (0)