summaryrefslogtreecommitdiffstats
path: root/sonar-batch/src
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-batch/src')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/DefaultSensorContext.java2
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java2
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);