diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-09-24 15:15:05 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-10-02 17:52:23 +0200 |
commit | a1cb900c90178390776c987462a4f2501b1e4e2c (patch) | |
tree | 71c7cb7e037d100dfaa244b7345a3be5480947bc /plugins/sonar-xoo-plugin | |
parent | 043c278c2844bd09ce9bd5add89d67eb7311a21f (diff) | |
download | sonarqube-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.java | 6 |
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); } |