mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
27 lines
436 B
Java
27 lines
436 B
Java
import java.io.*;
|
|
public class Subject {
|
|
private int myInt;
|
|
|
|
public void withClass(Object <caret>o) {
|
|
myInt += o.hashCode();
|
|
}
|
|
}
|
|
|
|
class User {
|
|
private void oper() throws IOException {
|
|
Subject subj = new Subject();
|
|
subj.withClass(new ThirdParty(false));
|
|
}
|
|
}
|
|
|
|
class ThirdParty {
|
|
public ThirdParty() {
|
|
}
|
|
|
|
public ThirdParty(boolean b) throws IOException {
|
|
if (b) {
|
|
throw new IOException();
|
|
}
|
|
}
|
|
}
|