mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
26 lines
542 B
Java
26 lines
542 B
Java
class Test {
|
|
void method(){
|
|
newMethod();
|
|
someOtherCode();
|
|
}
|
|
|
|
private void newMethod() {
|
|
try {
|
|
process.waitFor();
|
|
}
|
|
catch(InterruptedException e) {
|
|
process.destroy();
|
|
}
|
|
finally {
|
|
try {
|
|
myParsingThread.join();
|
|
}
|
|
catch(InterruptedException e) {
|
|
}
|
|
compilerHandler.processTerminated();
|
|
}
|
|
synchronized (this) {
|
|
myParsingThread = null;
|
|
}
|
|
}
|
|
} |