diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2012-01-01 21:48:15 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2012-01-01 21:48:15 +0100 |
commit | 9215b60984179e3fc28cea11a032556de4f7abdf (patch) | |
tree | 9bff4660b874f5af517d8ed4a9380235e12c709a /sonar-batch | |
parent | 7a87485a457afd837eb89a1df66d2287b122171d (diff) | |
download | sonarqube-9215b60984179e3fc28cea11a032556de4f7abdf.tar.gz sonarqube-9215b60984179e3fc28cea11a032556de4f7abdf.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/DefaultSensorContext.java | 2 | ||||
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java | 2 |
2 files changed, 2 insertions, 2 deletions
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); |