Skip to content

Commit e2273a1

Browse files
committed
Merge pull request functionaljava#150 from orionll/master
Removed unnecessary wrapping into SoftReference
2 parents 1ba2f25 + 80c75ab commit e2273a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/fj/P.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ public P1<A> f(final A a) {
3333
*/
3434
public static <A> P1<A> p(final A a) {
3535
return new P1<A>() {
36-
public A _1() {
36+
@Override public A _1() {
3737
return a;
3838
}
39+
@Override public P1<A> memo() { return this; }
3940
};
4041
}
4142

0 commit comments

Comments
 (0)