41 lines
809 B
Java
41 lines
809 B
Java
|
|
/**
|
||
|
|
* Copyright (C) 2014 Typesafe Inc. <http://www.typesafe.com>
|
||
|
|
*/
|
||
|
|
package akka.util;
|
||
|
|
|
||
|
|
import java.io.Serializable;
|
||
|
|
|
||
|
|
/*
|
||
|
|
* IMPORTANT: do not change this file, the line numbers are verified in LineNumberSpec
|
||
|
|
*/
|
||
|
|
|
||
|
|
public class LineNumberSpecCodeForJava {
|
||
|
|
|
||
|
|
// @FunctionalInterface // will be uncommented as soon as '-source 1.8' is set
|
||
|
|
public static interface F extends Serializable {
|
||
|
|
public String doit(String arg);
|
||
|
|
}
|
||
|
|
|
||
|
|
// public F f1() { // FIXME These are commented out until the build is switched to Java 8
|
||
|
|
// return (s) -> s;
|
||
|
|
// }
|
||
|
|
|
||
|
|
// public F f2() {
|
||
|
|
// return (s) -> {
|
||
|
|
// System.out.println(s);
|
||
|
|
// return s;
|
||
|
|
// };
|
||
|
|
// }
|
||
|
|
|
||
|
|
public F f3() {
|
||
|
|
return new F() {
|
||
|
|
private static final long serialVersionUID = 1L;
|
||
|
|
@Override
|
||
|
|
public String doit(String arg) {
|
||
|
|
return arg;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|