From 872b3923f80d9a2bcc13713f41cf801f2a7024eb Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 24 Apr 2012 10:12:28 +0200 Subject: Remove warnings --- .../src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java | 8 +++----- .../java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'sonar-graph/src') diff --git a/sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java b/sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java index 36166eb95cf..06818fc2856 100644 --- a/sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java +++ b/sonar-graph/src/test/java/org/sonar/graph/DsmTopologicalSorterTest.java @@ -19,8 +19,6 @@ */ package org.sonar.graph; -import java.io.IOException; - import org.junit.Test; import static org.junit.Assert.assertEquals; @@ -55,7 +53,7 @@ public class DsmTopologicalSorterTest { } @Test(expected = IllegalStateException.class) - public void sortCyclicGraph() throws IOException { + public void sortCyclicGraph() { StringPrintWriter textDsm = new StringPrintWriter(); textDsm.println(" | A | B | C | D |"); textDsm.println("A | | | | |"); @@ -68,7 +66,7 @@ public class DsmTopologicalSorterTest { } @Test - public void sortCyclicGraphWithManuallyFlaggedFeedbackEdges() throws IOException { + public void sortCyclicGraphWithManuallyFlaggedFeedbackEdges() { StringPrintWriter textDsm = new StringPrintWriter(); textDsm.println(" | A | B | C | D |"); textDsm.println("A | | | | |"); @@ -90,7 +88,7 @@ public class DsmTopologicalSorterTest { } @Test - public void sortCyclicGraphWithFlaggedFeedbackEdges() throws IOException { + public void sortCyclicGraphWithFlaggedFeedbackEdges() { DirectedGraph dcg = DirectedGraph.createStringDirectedGraph(); dcg.addEdge("A", "B", 3).addEdge("B", "A", 1); CycleDetector cycleDetector = new CycleDetector(dcg); diff --git a/sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java b/sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java index a00c4625a82..0702e945344 100644 --- a/sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java +++ b/sonar-graph/src/test/java/org/sonar/graph/IncrementalCyclesAndFESSolverTest.java @@ -21,7 +21,6 @@ package org.sonar.graph; import org.junit.Test; -import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; -- cgit v1.2.3