From 9215b60984179e3fc28cea11a032556de4f7abdf Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Sun, 1 Jan 2012 21:48:15 +0100 Subject: Fix some quality flaws --- sonar-batch/src/main/java/org/sonar/batch/DefaultSensorContext.java | 2 +- .../src/main/java/org/sonar/batch/index/DefaultResourcePersister.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sonar-batch/src') diff --git a/sonar-batch/src/main/java/org/sonar/batch/DefaultSensorContext.java b/sonar-batch/src/main/java/org/sonar/batch/DefaultSensorContext.java index 5dcda3d3332..253ca73c2b2 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/DefaultSensorContext.java +++ b/sonar-batch/src/main/java/org/sonar/batch/DefaultSensorContext.java @@ -155,7 +155,7 @@ public class DefaultSensorContext implements SensorContext { return index.getOutgoingEdges(resourceOrProject(from)); } - public void saveSource(Resource reference, String source) throws DuplicatedSourceException { + public void saveSource(Resource reference, String source) { index.setSource(reference, source); } diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java index 57037c987fd..c9058d855bd 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java @@ -87,7 +87,7 @@ public final class DefaultResourcePersister implements ResourcePersister { return snapshotsByResource.get(reference); } - public Snapshot getSnapshotOrFail(Resource resource) throws ResourceNotPersistedException { + public Snapshot getSnapshotOrFail(Resource resource) { Snapshot snapshot = getSnapshot(resource); if (snapshot == null) { throw new ResourceNotPersistedException(resource); -- cgit v1.2.3