aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-protocol
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2019-07-15 15:59:23 -0500
committerSonarTech <sonartech@sonarsource.com>2019-07-17 20:21:13 +0200
commite4c5ada51ddcc8cd2ac3c19961e9158af2a46e8a (patch)
treea32da619600d0200d4e414d13c0fb4ebb2f9a31e /sonar-scanner-protocol
parent03bb045cca26245804592602c7ff0c6e477f3b8d (diff)
downloadsonarqube-e4c5ada51ddcc8cd2ac3c19961e9158af2a46e8a.tar.gz
sonarqube-e4c5ada51ddcc8cd2ac3c19961e9158af2a46e8a.zip
Clean deps
Diffstat (limited to 'sonar-scanner-protocol')
-rw-r--r--sonar-scanner-protocol/build.gradle4
-rw-r--r--sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepository.java4
2 files changed, 3 insertions, 5 deletions
diff --git a/sonar-scanner-protocol/build.gradle b/sonar-scanner-protocol/build.gradle
index 87a8c87cac7..805cedb6d12 100644
--- a/sonar-scanner-protocol/build.gradle
+++ b/sonar-scanner-protocol/build.gradle
@@ -10,16 +10,14 @@ dependencies {
compile 'com.google.code.gson:gson'
compile 'com.google.protobuf:protobuf-java'
compile 'commons-io:commons-io'
- compile 'net.jpountz.lz4:lz4'
+ compile 'commons-lang:commons-lang'
compile project(':sonar-core')
compileOnly 'com.google.code.findbugs:jsr305'
testCompile 'com.google.guava:guava'
testCompile 'junit:junit'
- testCompile 'net.javacrumbs.json-unit:json-unit-assertj:0.0.15'
testCompile 'org.assertj:assertj-core'
- testCompile 'org.mockito:mockito-core'
}
//create a single Jar with all dependencies
diff --git a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepository.java b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepository.java
index b04fbe0c7b7..efaca6fa252 100644
--- a/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepository.java
+++ b/sonar-scanner-protocol/src/main/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepository.java
@@ -19,14 +19,14 @@
*/
package org.sonar.scanner.protocol.input;
-import com.google.common.collect.Maps;
+import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
public class MultiModuleProjectRepository implements ProjectRepositories {
- private Map<String, SingleProjectRepository> repositoryPerModule = Maps.newHashMap();
+ private Map<String, SingleProjectRepository> repositoryPerModule = new HashMap<>();
public MultiModuleProjectRepository addFileDataToModule(String moduleKey, @Nullable String path, FileData fileData) {
if (path == null || (fileData.hash() == null && fileData.revision() == null)) {