mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
testdata for IDEA-138696
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import java.io.IOException;
|
||||
|
||||
class CommandTest {
|
||||
|
||||
public URL someFunction(URI uri) {
|
||||
return unchecked(uri::toURL);
|
||||
}
|
||||
|
||||
public interface UncheckedRun<T> {
|
||||
public T run() throws Throwable;
|
||||
}
|
||||
|
||||
public static <T> T unchecked(UncheckedRun<T> run) {
|
||||
try {
|
||||
return run.run();
|
||||
} catch (Throwable throwable) {
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
abstract class URI {
|
||||
abstract URL toURL() throws IOException;
|
||||
}
|
||||
|
||||
class URL {}
|
||||
Reference in New Issue
Block a user