mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user