Skip to content

Commit bd1af97

Browse files
committed
1 parent 49b5ed5 commit bd1af97

6 files changed

Lines changed: 12 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="4.12.0" date="April xx, 2025" description="Chrome/Edge 135, Firefox 137, Rhino RegExp, Bugfixes">
11+
<action type="update" dev="rbri">
12+
AlertHandler, ConfirmHandler, FrameContentHandler, CharacterDataChangeListener, and IncorrectnessListener
13+
marked as @FunctionalInterface.
14+
</action>
1115
<action type="update" dev="rbri">
1216
Upgrade Apache commons-io to 2.19.0.
1317
</action>

src/main/java/org/htmlunit/AlertHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a>
2424
* @author Ronald Brill
2525
*/
26+
@FunctionalInterface
2627
public interface AlertHandler extends Serializable {
2728

2829
/**

src/main/java/org/htmlunit/ConfirmHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
* are triggered when the JavaScript function <code>window.confirm()</code> is invoked.
2222
*
2323
* @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a>
24+
* @author Ronald Brill
2425
*/
26+
@FunctionalInterface
2527
public interface ConfirmHandler extends Serializable {
2628

2729
/**

src/main/java/org/htmlunit/FrameContentHandler.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 FrameContentHandler {
2728

2829
/**

src/main/java/org/htmlunit/IncorrectnessListener.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
* that HtmlUnit can handle but that denote a badly written application.
2121
*
2222
* @author Marc Guillemot
23+
* @author Ronald Brill
2324
*/
25+
@FunctionalInterface
2426
public interface IncorrectnessListener {
2527

2628
/**

src/main/java/org/htmlunit/html/CharacterDataChangeListener.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
* Implementations of this interface receive notifications of changes to the Character Data.
2121
*
2222
* @author Ahmed Ashour
23+
* @author Ronald Brill
2324
* @see CharacterDataChangeEvent
2425
*/
26+
@FunctionalInterface
2527
public interface CharacterDataChangeListener extends Serializable {
2628

2729
/**

0 commit comments

Comments
 (0)