From a1cb900c90178390776c987462a4f2501b1e4e2c Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 24 Sep 2014 15:15:05 +0200 Subject: SONAR-5642 Initial work on Git provider --- .../src/main/java/org/sonar/xoo/lang/XooScmProvider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/sonar-xoo-plugin') 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 files, BlameResultHandler handler) { + public void blame(Iterable 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); } -- cgit v1.2.3