mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Removed catch blocks where exception is immediately rethrown
This commit is contained in:
@@ -235,8 +235,6 @@ implements ClassGenerator
|
||||
return firstInstance(gen);
|
||||
} catch (RuntimeException e) {
|
||||
throw e;
|
||||
} catch (Error e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
throw new CodeGenerationException(e);
|
||||
}
|
||||
|
||||
-2
@@ -50,8 +50,6 @@ public class TypeInferenceHelper {
|
||||
ourInferenceContext.set(new InferenceContext.PartialContext(bindings, getCurrentContext()));
|
||||
try {
|
||||
return computation.compute();
|
||||
} catch(Throwable e) {
|
||||
throw e;
|
||||
}
|
||||
finally {
|
||||
ourInferenceContext.set(old);
|
||||
|
||||
Reference in New Issue
Block a user