From 0d43023571ccd4304a6e2db9ac9621aa34a98363 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Sun, 9 Oct 2011 07:55:33 +0000 Subject: [PATCH] Revert "All SFBuilder setters return 'this' & use varargs" This reverts commit 0e2ce565c9ef64d97299836a3b979b2cf85de759. --- .../SessionFactoryBuilderSupport.java | 26 ++++++++----------- .../AnnotationSessionFactoryBuilder.java | 7 +++-- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/SessionFactoryBuilderSupport.java b/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/SessionFactoryBuilderSupport.java index 80737ed307..62522bcffd 100644 --- a/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/SessionFactoryBuilderSupport.java +++ b/org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/SessionFactoryBuilderSupport.java @@ -817,7 +817,7 @@ public abstract class SessionFactoryBuilderSupport 0) { boolean oldAutoCommit = con.getAutoCommit(); if (!oldAutoCommit) { @@ -954,9 +954,8 @@ public abstract class SessionFactoryBuilderSupport@org.hibernate.annotations.Entity. * @see #setPackagesToScan */ - public AnnotationSessionFactoryBuilder setEntityTypeFilters(TypeFilter... entityTypeFilters) { + public AnnotationSessionFactoryBuilder setEntityTypeFilters(TypeFilter[] entityTypeFilters) { this.entityTypeFilters = entityTypeFilters; return this; } - public AnnotationSessionFactoryBuilder setResourcePatternResolver(ResourcePatternResolver resourcePatternResolver) { + public void setResourcePatternResolver(ResourcePatternResolver resourcePatternResolver) { this.resourcePatternResolver = resourcePatternResolver; - return this; } /**