TypeAlias: prevent map() from being overridden

This commit is contained in:
Paul Campbell 2017-10-19 18:45:45 +01:00
parent 1e8941b030
commit b5b11982e1

View file

@ -47,7 +47,6 @@ public abstract class TypeAlias<T> {
this.value = value;
}
/**
* Map the TypeAlias into another value.
*
@ -56,7 +55,7 @@ public abstract class TypeAlias<T> {
*
* @return a TypeAlias
*/
public <R> R map(final Function<T, R> f) {
public final <R> R map(final Function<T, R> f) {
return f.apply(value);
}