Skip to content

Commit 8ed9e39

Browse files
author
Thomas Risberg
committed
changed to source 1.5; removed overrides on interface methods
1 parent 6263b90 commit 8ed9e39

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

spring-data-mongodb-cross-store/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@
212212
<artifactId>spring-data-commons-aspects</artifactId>
213213
</aspectLibrary> -->
214214
</aspectLibraries>
215-
<source>1.6</source>
216-
<target>1.6</target>
215+
<source>1.5</source>
216+
<target>1.5</target>
217217
</configuration>
218218
</plugin>
219219
</plugins>

spring-data-mongodb-cross-store/src/main/java/org/springframework/data/persistence/document/DocumentBackedTransactionSynchronization.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ public DocumentBackedTransactionSynchronization(ChangeSetPersister<Object> chang
2323
this.entity = entity;
2424
}
2525

26-
@Override
2726
public void afterCommit() {
2827
log.debug("After Commit called for " + entity);
2928
changeSetPersister.persistState(entity, entity.getChangeSet());
3029
changeSetTxStatus = 0;
3130
}
3231

33-
@Override
3432
public void afterCompletion(int status) {
3533
log.debug("After Completion called with status = " + status);
3634
if (changeSetTxStatus == 0) {
@@ -45,24 +43,19 @@ public void afterCompletion(int status) {
4543
}
4644
}
4745

48-
@Override
4946
public void beforeCommit(boolean readOnly) {
5047
}
5148

52-
@Override
5349
public void beforeCompletion() {
5450
}
5551

56-
@Override
5752
public void flush() {
5853
}
5954

60-
@Override
6155
public void resume() {
6256
throw new IllegalStateException("ChangedSetBackedTransactionSynchronization does not support transaction suspension currently.");
6357
}
6458

65-
@Override
6659
public void suspend() {
6760
throw new IllegalStateException("ChangedSetBackedTransactionSynchronization does not support transaction suspension currently.");
6861
}

spring-data-mongodb-cross-store/src/main/java/org/springframework/data/persistence/document/mongo/MongoChangeSetPersister.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory) {
4343
}
4444

4545

46-
@Override
4746
public void getPersistentState(Class<? extends ChangeSetBacked> entityClass,
4847
Object id, final ChangeSet changeSet)
4948
throws DataAccessException, NotFoundException {
@@ -62,7 +61,6 @@ public void getPersistentState(Class<? extends ChangeSetBacked> entityClass,
6261
log.debug("Loading MongoDB data for " + dbk);
6362
}
6463
mongoTemplate.execute(collName, new CollectionCallback<Object>() {
65-
@Override
6664
public Object doInCollection(DBCollection collection)
6765
throws MongoException, DataAccessException {
6866
for (DBObject dbo : collection.find(dbk)) {
@@ -90,7 +88,6 @@ public Object doInCollection(DBCollection collection)
9088
});
9189
}
9290

93-
@Override
9491
public Object getPersistentId(ChangeSetBacked entity, ChangeSet cs) throws DataAccessException {
9592
log.debug("getPersistentId called on " + entity);
9693
if (entityManagerFactory == null) {
@@ -100,7 +97,6 @@ public Object getPersistentId(ChangeSetBacked entity, ChangeSet cs) throws DataA
10097
return o;
10198
}
10299

103-
@Override
104100
public Object persistState(ChangeSetBacked entity, ChangeSet cs) throws DataAccessException {
105101
if (cs == null) {
106102
log.debug("Flush: changeset was null, nothing to flush.");
@@ -125,7 +121,6 @@ public Object persistState(ChangeSetBacked entity, ChangeSet cs) throws DataAcce
125121
dbQuery.put(ENTITY_FIELD_NAME, key);
126122
DBObject dbId = mongoTemplate.execute(collName,
127123
new CollectionCallback<DBObject>() {
128-
@Override
129124
public DBObject doInCollection(DBCollection collection)
130125
throws MongoException, DataAccessException {
131126
return collection.findOne(dbQuery);
@@ -136,7 +131,6 @@ public DBObject doInCollection(DBCollection collection)
136131
log.debug("Flush: removing: " + dbQuery);
137132
}
138133
mongoTemplate.execute(collName, new CollectionCallback<Object>() {
139-
@Override
140134
public Object doInCollection(DBCollection collection)
141135
throws MongoException, DataAccessException {
142136
collection.remove(dbQuery);
@@ -156,7 +150,6 @@ public Object doInCollection(DBCollection collection)
156150
dbDoc.put("_id", dbId.get("_id"));
157151
}
158152
mongoTemplate.execute(collName, new CollectionCallback<Object>() {
159-
@Override
160153
public Object doInCollection(DBCollection collection)
161154
throws MongoException, DataAccessException {
162155
collection.save(dbDoc);

0 commit comments

Comments
 (0)