Remove override annotation for building on Java 5
This commit is contained in:
@@ -23,27 +23,22 @@ public class HashMapChangeSet implements ChangeSet {
|
||||
this(new HashMap<String, Object>());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set(String key, Object o) {
|
||||
values.put(key, o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "HashMapChangeSet: values=[" + values + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getValues() {
|
||||
return Collections.unmodifiableMap(values);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object removeProperty(String k) {
|
||||
return this.values.remove(k);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> T get(String key, Class<T> requiredClass, ConversionService conversionService) {
|
||||
return conversionService.convert(values.get(key), requiredClass);
|
||||
}
|
||||
|
||||
@@ -22,14 +22,12 @@ public class ChangeSetBackedTransactionSynchronization implements TransactionSyn
|
||||
this.entity = entity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterCommit() {
|
||||
log.debug("After Commit called for " + entity);
|
||||
changeSetPersister.persistState(entity.getClass(), entity.getChangeSet());
|
||||
changeSetTxStatus = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterCompletion(int status) {
|
||||
log.debug("After Completion called with status = " + status);
|
||||
if (changeSetTxStatus == 0) {
|
||||
@@ -44,24 +42,19 @@ public class ChangeSetBackedTransactionSynchronization implements TransactionSyn
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeCommit(boolean readOnly) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeCompletion() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void flush() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resume() {
|
||||
throw new IllegalStateException("ChangedSetBackedTransactionSynchronization does not support transaction suspension currently.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void suspend() {
|
||||
throw new IllegalStateException("ChangedSetBackedTransactionSynchronization does not support transaction suspension currently.");
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ public class NaiveDoubleTransactionManager implements PlatformTransactionManager
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void commit(TransactionStatus ts) throws TransactionException {
|
||||
try {
|
||||
final TransactionStatus tsb = copyTransactionStatus(status.get(ts));
|
||||
@@ -48,7 +47,6 @@ public class NaiveDoubleTransactionManager implements PlatformTransactionManager
|
||||
return new DefaultTransactionStatus(t,ts.isNewTransaction(), false, false, false, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TransactionStatus getTransaction(TransactionDefinition td)
|
||||
throws TransactionException {
|
||||
TransactionStatus atx = a.getTransaction(td);
|
||||
@@ -57,7 +55,6 @@ public class NaiveDoubleTransactionManager implements PlatformTransactionManager
|
||||
return atx;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void rollback(TransactionStatus ts) throws TransactionException {
|
||||
final TransactionStatus tsb = copyTransactionStatus(status.remove(ts));
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user