mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Functional interfaces should be annotated as functional interfaces
This commit is contained in:
parent
f1ef3bf68b
commit
752392fc46
22 changed files with 28 additions and 10 deletions
|
|
@ -3,7 +3,7 @@ package mage.client.util;
|
|||
/**
|
||||
* @author nantuko
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Command {
|
||||
|
||||
void execute();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import java.io.Serializable;
|
|||
* @author BetaSteward_at_googlemail.com
|
||||
* @param <E>
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Listener<E extends Event> extends Serializable {
|
||||
|
||||
void event(E event);
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ public class TextboxRule {
|
|||
|
||||
// An attributed region in the text, which can be applied to an
|
||||
// attributed string.
|
||||
@FunctionalInterface
|
||||
public interface AttributeRegion {
|
||||
|
||||
void applyToAttributedString(AttributedString str, Font normal, Font italic);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue