Skip to content

Commit a12901d

Browse files
JACOCO-97 Fix more Sonar issues (#169)
1 parent de0190f commit a12901d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/main/java/org/sonar/plugins/jacoco/JacocoPlugin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
package org.sonar.plugins.jacoco;
2121

2222
import org.sonar.api.Plugin;
23-
import org.sonar.api.PropertyType;
2423
import org.sonar.api.config.PropertyDefinition;
2524
import org.sonar.api.resources.Qualifiers;
2625

src/test/java/org/sonar/plugins/jacoco/ReportPathsProviderTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*/
2020
package org.sonar.plugins.jacoco;
2121

22-
import java.io.FileNotFoundException;
2322
import java.io.IOException;
2423
import java.nio.file.Files;
2524
import java.nio.file.Path;
@@ -90,7 +89,7 @@ void should_return_multiple_paths_when_aggregate_paths_property_is_provided() th
9089
}
9190

9291
@Test
93-
void should_return_null_if_the_aggregate_report_property_is_not_defined() throws FileNotFoundException {
92+
void should_return_null_if_the_aggregate_report_property_is_not_defined() {
9493
assertThat(provider.getAggregateReportPaths()).isEmpty();
9594
}
9695

@@ -198,7 +197,7 @@ void should_resolve_absolute_path_pattern() throws IOException {
198197
}
199198

200199
@Test
201-
void should_return_empty_if_provided_and_default_does_not_exist() throws IOException {
200+
void should_return_empty_if_provided_and_default_does_not_exist() {
202201
settings.setProperty(ReportPathsProvider.REPORT_PATHS_PROPERTY_KEY, "mypath1");
203202

204203
Collection<Path> paths = provider.getPaths();
@@ -210,7 +209,7 @@ void should_return_empty_if_provided_and_default_does_not_exist() throws IOExcep
210209
}
211210

212211
@Test
213-
void should_return_empty_with_log_details_if_several_provided_paths_does_not_exist() throws IOException {
212+
void should_return_empty_with_log_details_if_several_provided_paths_does_not_exist() {
214213
settings.setProperty(ReportPathsProvider.REPORT_PATHS_PROPERTY_KEY, "mypath1,mypath2,");
215214

216215
Collection<Path> paths = provider.getPaths();
@@ -236,7 +235,7 @@ void should_fallback_to_defaults_if_exist() throws IOException {
236235
}
237236

238237
@Test
239-
void should_return_empty_if_nothing_specified_and_default_doesnt_exist() throws IOException {
238+
void should_return_empty_if_nothing_specified_and_default_doesnt_exist() {
240239
Collection<Path> paths = provider.getPaths();
241240
assertThat(paths).isEmpty();
242241
assertThat(logTester.logs()).hasSize(1);

0 commit comments

Comments
 (0)