Skip to content

Commit 12097bd

Browse files
committed
#243 Change EntryProcessor from abstract base class to an interface so that it can be used as a @FunctionalInterface by Lambda in Java 8.
1 parent 6f28579 commit 12097bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/javax/cache/EntryProcessorExamples.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ public void incrementValue() {
4545
*
4646
* @param <K> the type of keys
4747
*/
48-
public static class IncrementProcessor<K> extends EntryProcessor<K, Integer, Integer>
49-
implements Serializable {
48+
public static class IncrementProcessor<K> implements EntryProcessor<K,
49+
Integer, Integer>
50+
, Serializable {
5051

5152
/**
5253
* The serialVersionUID required for {@link java.io.Serializable}.

0 commit comments

Comments
 (0)