Skip to content

Commit 7632b52

Browse files
committed
AttachmentHandler, PrintHandler, PromptHandler, RefreshHandler, ScriptPreProcessor, StatusHandler, and WebStartHandler marked as @FunctionalInterface.
1 parent 1c7684e commit 7632b52

8 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/changes/changes.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
<body>
1010
<release version="5.5.0" date="August xx, 2026" description="Chrome/Edge 151, Bugfixes">
11+
<action type="update" dev="rbri">
12+
AttachmentHandler, PrintHandler, PromptHandler, RefreshHandler, ScriptPreProcessor, StatusHandler,
13+
and WebStartHandler marked as @FunctionalInterface.
14+
</action>
1115
<action type="update" dev="rbri">
1216
Simplified EncodingSniffer.translateEncodingLabel(): now always returns the translator's
1317
normalized encoding name instead of sometimes returning the original (possibly mixed-case) input.

src/main/java/org/htmlunit/PrintHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
*
2828
* @author Ronald Brill
2929
*/
30+
@FunctionalInterface
3031
public interface PrintHandler extends Serializable {
3132

3233
/**

src/main/java/org/htmlunit/PromptHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* @author Ahmed Ashour
2525
* @author Ronald Brill
2626
*/
27+
@FunctionalInterface
2728
public interface PromptHandler extends Serializable {
2829

2930
/**

src/main/java/org/htmlunit/RefreshHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* @author Daniel Gredler
2525
* @author Ronald Brill
2626
*/
27+
@FunctionalInterface
2728
public interface RefreshHandler {
2829

2930
/**

src/main/java/org/htmlunit/ScriptPreProcessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* @author Ben Curren
2525
* @author Ronald Brill
2626
*/
27+
@FunctionalInterface
2728
public interface ScriptPreProcessor {
2829

2930
/**

src/main/java/org/htmlunit/StatusHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* @author Mike Bowler
2323
* @author Ronald Brill
2424
*/
25+
@FunctionalInterface
2526
public interface StatusHandler extends Serializable {
2627

2728
/**

src/main/java/org/htmlunit/attachment/AttachmentHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
* @see org.htmlunit.WebClient#getAttachmentHandler()
4848
* @see <a href="http://www.ietf.org/rfc/rfc2183.txt">RFC 2183</a>
4949
*/
50+
@FunctionalInterface
5051
public interface AttachmentHandler extends Serializable {
5152

5253
/**

src/main/java/org/htmlunit/webstart/WebStartHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*
2424
* @author Ronald Brill
2525
*/
26+
@FunctionalInterface
2627
public interface WebStartHandler extends Serializable {
2728

2829
/**

0 commit comments

Comments
 (0)