Improve type safety of transactional collections by reducing visibility of private features

This commit is contained in:
dsyer
2008-09-02 07:52:22 +00:00
parent 3c098f6cb8
commit 1a6d7202ec
11 changed files with 40 additions and 43 deletions

View File

@@ -16,7 +16,6 @@
package org.springframework.batch.core.launch;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
@@ -43,9 +42,7 @@ public class EmptyItemWriter<T> implements ItemWriter<T>, InitializingBean {
List<Object> list;
public void afterPropertiesSet() throws Exception {
TransactionAwareProxyFactory<List<Object>> factory = new TransactionAwareProxyFactory<List<Object>>(
new ArrayList<Object>());
list = factory.createInstance();
list = TransactionAwareProxyFactory.createTransactionalList();
}
public void setFailurePoint(int failurePoint) {