Removed catch blocks where exception is immediately rethrown

This commit is contained in:
Tagir Valeev
2018-09-05 20:50:41 +07:00
parent 39ca70f8dd
commit 15ee576bab
2 changed files with 0 additions and 4 deletions
@@ -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);
}
@@ -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);