This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test { | |
interface A { | |
default String a() {return "A";} | |
} | |
interface B { | |
default String b() {return "B";} | |
} | |
static class C implements A, B{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.function.Function; | |
import java.util.Optional; | |
public class Compile { | |
private <F,T> T runFun(Function<Optional<F>, T> fun, Optional<F> opt) { | |
return fun.apply(opt) ; | |
} | |
public void foo() { | |
Function<Optional<String>, String> fun = o -> o.orElseThrow(() -> new RuntimeException("nah")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dir1=$1 | |
dir2=$2 | |
die() { | |
echo >&2 "$@" | |
exit 1 | |
} |