diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-04-06 10:23:06 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-04-06 10:23:06 +0200 |
commit | 9e8e346e71b304fcf7aeb4e4f4c9a3c7107e1a53 (patch) | |
tree | 9be0ec5f72b5b6eb95871c50fab3b8f180de0b59 /sonar-testing-harness/src | |
parent | a5db81075b825ee87df9c64e3f1f2a32cdb4d72b (diff) | |
download | sonarqube-9e8e346e71b304fcf7aeb4e4f4c9a3c7107e1a53.tar.gz sonarqube-9e8e346e71b304fcf7aeb4e4f4c9a3c7107e1a53.zip |
Fix quality flaws
Diffstat (limited to 'sonar-testing-harness/src')
-rw-r--r-- | sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java b/sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java index 97809138b8d..32815bc4363 100644 --- a/sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java +++ b/sonar-testing-harness/src/main/java/org/sonar/test/RunTestsMultipleTimes.java @@ -19,14 +19,16 @@ */ package org.sonar.test; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; import org.junit.rules.TestRule; import org.junit.runner.Description; import org.junit.runners.model.Statement; -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.*; - public class RunTestsMultipleTimes implements TestRule { final int threads; final int times; @@ -57,7 +59,7 @@ public class RunTestsMultipleTimes implements TestRule { } catch (RuntimeException e) { throw e; } catch (Throwable e) { - throw new RuntimeException(e); + throw new IllegalStateException(e); } } })); @@ -75,4 +77,4 @@ public class RunTestsMultipleTimes implements TestRule { } }; } -}
\ No newline at end of file +} |