diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/jdo/support/JdoDaoSupport.java b/org.springframework.orm/src/main/java/org/springframework/orm/jdo/support/JdoDaoSupport.java index 2843651f7fc..f94193d547c 100644 --- a/org.springframework.orm/src/main/java/org/springframework/orm/jdo/support/JdoDaoSupport.java +++ b/org.springframework.orm/src/main/java/org/springframework/orm/jdo/support/JdoDaoSupport.java @@ -67,7 +67,7 @@ public abstract class JdoDaoSupport extends DaoSupport { */ public final void setPersistenceManagerFactory(PersistenceManagerFactory persistenceManagerFactory) { if (this.jdoTemplate == null || persistenceManagerFactory != this.jdoTemplate.getPersistenceManagerFactory()) { - this.jdoTemplate = createJdoTemplate(persistenceManagerFactory); + this.jdoTemplate = createJdoTemplate(persistenceManagerFactory); } } diff --git a/org.springframework.transaction/src/main/java/org/springframework/transaction/support/DefaultTransactionStatus.java b/org.springframework.transaction/src/main/java/org/springframework/transaction/support/DefaultTransactionStatus.java index ef1ed5ae872..a69769852a0 100644 --- a/org.springframework.transaction/src/main/java/org/springframework/transaction/support/DefaultTransactionStatus.java +++ b/org.springframework.transaction/src/main/java/org/springframework/transaction/support/DefaultTransactionStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -161,6 +161,7 @@ public class DefaultTransactionStatus extends AbstractTransactionStatus { * Delegate the flushing to the transaction object, * provided that the latter implements the {@link SmartTransactionObject} interface. */ + @Override public void flush() { if (this.transaction instanceof SmartTransactionObject) { ((SmartTransactionObject) this.transaction).flush();