src.samples.java.ex.AKI_Sample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sb-contrib Show documentation
Show all versions of sb-contrib Show documentation
An auxiliary findbugs.sourceforge.net plugin for java bug detectors that fall outside the narrow scope of detectors to be packaged with the product itself.
The newest version!
package ex;
import akka.http.javadsl.server.AllDirectives;
import akka.http.javadsl.server.PathMatchers;
import akka.http.javadsl.server.Route;
public class AKI_Sample extends AllDirectives {
public void testExtraneousRoute() {
Route r = route(
path(PathMatchers.segment("upload").slash(PathMatchers.segment()), (token) -> route(upload(token))));
}
public void testExtraneousConcat() {
Route r = concat(path(PathMatchers.segment("upload").slash(PathMatchers.segment()), (token) -> upload(token)));
}
private Route upload(String token) {
return null;
}
}