Replace "throws Exception" with the specific Exception(s) thrown.

Conflicts:
	src/main/java/net/openhft/chronicle/map/EngineReplicationLangBytes.java
	src/main/java/net/openhft/chronicle/map/ReplicatedChronicleMap.java
	src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java
	src/test/java/net/openhft/chronicle/map/ChronicleMapTest.java
	src/test/java/net/openhft/chronicle/map/IntIntMultiMapTest.java
This commit is contained in:
Peter Lawrey
2015-07-25 23:25:54 +03:00
committed by leventov
parent e7a8a11505
commit 87449b7d99
21 changed files with 55 additions and 53 deletions
@@ -17,6 +17,7 @@
package net.openhft.chronicle.map.jsr166;
import junit.framework.AssertionFailedError;
import net.openhft.lang.Jvm;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
@@ -261,7 +262,7 @@ public class JSR166TestCase {
* Triggers test case Assert.failure if interrupt status is set in the main thread.
*/
@After
public void tearDown() throws Exception {
public void tearDown() throws InterruptedException {
Throwable t = threadFailure.getAndSet(null);
if (t != null) {
if (t instanceof Error)
@@ -269,7 +270,7 @@ public class JSR166TestCase {
else if (t instanceof RuntimeException)
throw (RuntimeException) t;
else if (t instanceof Exception)
throw (Exception) t;
throw Jvm.rethrow(t);
else {
AssertionFailedError afe =
new AssertionFailedError(t.toString());