aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-xoo-plugin
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-09-24 15:15:05 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-10-02 17:52:23 +0200
commita1cb900c90178390776c987462a4f2501b1e4e2c (patch)
tree71c7cb7e037d100dfaa244b7345a3be5480947bc /plugins/sonar-xoo-plugin
parent043c278c2844bd09ce9bd5add89d67eb7311a21f (diff)
downloadsonarqube-a1cb900c90178390776c987462a4f2501b1e4e2c.tar.gz
sonarqube-a1cb900c90178390776c987462a4f2501b1e4e2c.zip
SONAR-5642 Initial work on Git provider
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r--plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/XooScmProvider.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/XooScmProvider.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/XooScmProvider.java
index 71582efc3ef..895d47dfbbe 100644
--- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/XooScmProvider.java
+++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/lang/XooScmProvider.java
@@ -60,14 +60,14 @@ public class XooScmProvider implements ScmProvider {
}
@Override
- public void blame(Iterable<InputFile> files, BlameResultHandler handler) {
+ public void blame(Iterable<InputFile> files, BlameResult handler) {
for (InputFile inputFile : files) {
processFile(inputFile, handler);
}
}
@VisibleForTesting
- protected void processFile(InputFile inputFile, BlameResultHandler handler) {
+ protected void processFile(InputFile inputFile, BlameResult handler) {
File ioFile = inputFile.file();
File scmDataFile = new java.io.File(ioFile.getParentFile(), ioFile.getName() + SCM_EXTENSION);
if (!scmDataFile.exists()) {
@@ -94,7 +94,7 @@ public class XooScmProvider implements ScmProvider {
blame.add(new BlameLine(date, revision, author));
}
}
- handler.handle(inputFile, blame);
+ handler.add(inputFile, blame);
} catch (IOException e) {
throw new IllegalStateException(e);
}