mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
27 lines
395 B
Java
27 lines
395 B
Java
class GoodCodeIsRed {
|
|
|
|
public void test() {
|
|
FileIF file = new FileImpl();
|
|
file.getInputStream();
|
|
}
|
|
}
|
|
|
|
class FileImpl implements FileIF {
|
|
|
|
public void getInputStream() {
|
|
}
|
|
|
|
}
|
|
|
|
interface FileIF extends BasicFileIF, DataSource {
|
|
}
|
|
|
|
interface BasicFileIF {
|
|
void getInputStream();
|
|
}
|
|
|
|
|
|
interface DataSource {
|
|
void getInputStream() throws java.io.IOException;
|
|
}
|