Functional interfaces should be annotated as functional interfaces

This commit is contained in:
vraskulin 2017-02-15 19:23:12 +03:00
parent f1ef3bf68b
commit 752392fc46
22 changed files with 28 additions and 10 deletions

View file

@ -3,7 +3,7 @@ package mage.client.util;
/**
* @author nantuko
*/
@FunctionalInterface
public interface Command {
void execute();
}

View file

@ -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);

View file

@ -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);