TypeAlias: prevent map() from being overridden
This commit is contained in:
parent
1e8941b030
commit
b5b11982e1
1 changed files with 1 additions and 2 deletions
|
@ -47,7 +47,6 @@ public abstract class TypeAlias<T> {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map the TypeAlias into another value.
|
* Map the TypeAlias into another value.
|
||||||
*
|
*
|
||||||
|
@ -56,7 +55,7 @@ public abstract class TypeAlias<T> {
|
||||||
*
|
*
|
||||||
* @return a TypeAlias
|
* @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);
|
return f.apply(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue