diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-12-03 22:51:08 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-12-03 22:51:08 +0100 |
commit | 1e812fa858fa398020317f1aebd3d467dadf6d65 (patch) | |
tree | 1c6babc47fd2b470322fa11fff9d55082437c219 /plugins/sonar-core-plugin | |
parent | 0030c3e73146ad1c88895b54139050a7536e2bad (diff) | |
download | sonarqube-1e812fa858fa398020317f1aebd3d467dadf6d65.tar.gz sonarqube-1e812fa858fa398020317f1aebd3d467dadf6d65.zip |
Fix incorrect imports
Diffstat (limited to 'plugins/sonar-core-plugin')
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/InitialOpenIssuesStack.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/InitialOpenIssuesStack.java index 7fc7cd6232e..10a41111771 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/InitialOpenIssuesStack.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/InitialOpenIssuesStack.java @@ -20,7 +20,7 @@ package org.sonar.plugins.core.issue; -import edu.emory.mathcs.backport.java.util.Collections; +import java.util.Collections; import org.sonar.api.BatchExtension; import org.sonar.api.batch.InstantiationStrategy; import org.sonar.batch.index.Cache; @@ -75,7 +75,7 @@ public class InitialOpenIssuesStack implements BatchExtension { public List<IssueChangeDto> selectChangelog(String issueKey) { List<IssueChangeDto> changeDtos = issuesChangelogCache.get(issueKey); - return changeDtos != null ? changeDtos : Collections.emptyList(); + return changeDtos != null ? changeDtos : Collections.<IssueChangeDto>emptyList(); } public void clear() { diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/InitialOpenIssuesStackTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/InitialOpenIssuesStackTest.java index 590f9bd5e84..a32ea0bb51d 100644 --- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/InitialOpenIssuesStackTest.java +++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/InitialOpenIssuesStackTest.java @@ -20,7 +20,7 @@ package org.sonar.plugins.core.issue; -import edu.emory.mathcs.backport.java.util.Collections; +import java.util.Collections; import org.junit.After; import org.junit.Before; import org.junit.ClassRule; @@ -45,7 +45,9 @@ public class InitialOpenIssuesStackTest { public static TemporaryFolder temp = new TemporaryFolder(); public static Caches createCacheOnTemp(TemporaryFolder temp) { - BootstrapSettings bootstrapSettings = new BootstrapSettings(new BootstrapProperties(Collections.emptyMap())); + BootstrapSettings bootstrapSettings = new BootstrapSettings( + new BootstrapProperties(Collections.<String,String>emptyMap()) + ); try { bootstrapSettings.properties().put(CoreProperties.WORKING_DIRECTORY, temp.newFolder().getAbsolutePath()); } catch (IOException e) { |