From 8c4ca5022d2e6f3582cb8ced9b356660e2ccff2f Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Thu, 14 Jun 2012 16:33:36 +0400 Subject: [PATCH] code conventions --- compiler/tests/org/jetbrains/jet/cli/jvm/CliTest.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/compiler/tests/org/jetbrains/jet/cli/jvm/CliTest.java b/compiler/tests/org/jetbrains/jet/cli/jvm/CliTest.java index c1f82145890..7db15ae4538 100644 --- a/compiler/tests/org/jetbrains/jet/cli/jvm/CliTest.java +++ b/compiler/tests/org/jetbrains/jet/cli/jvm/CliTest.java @@ -49,9 +49,11 @@ public class CliTest { System.setOut(new PrintStream(bytes)); ExitCode exitCode = new K2JVMCompiler().exec(System.out, args); return bytes.toString("utf-8") + exitCode + "\n"; - } catch (Exception e) { + } + catch (Exception e) { throw ExceptionUtils.rethrow(e); - } finally { + } + finally { System.setOut(origOut); } } @@ -63,7 +65,8 @@ public class CliTest { String expected = FileUtil.loadFile(new File("compiler/testData/cli/" + testName.getMethodName() + ".out")); Assert.assertEquals(expected, actual); - } catch (Exception e) { + } + catch (Exception e) { throw ExceptionUtils.rethrow(e); } }