[hibernate-commits] Hibernate SVN: r19777 - validator/trunk/hibernate-validator/src/main/java/org/hibernate/validator/messageinterpolation.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Jun 21 09:35:32 EDT 2010


Author: hardy.ferentschik
Date: 2010-06-21 09:35:31 -0400 (Mon, 21 Jun 2010)
New Revision: 19777

Modified:
   validator/trunk/hibernate-validator/src/main/java/org/hibernate/validator/messageinterpolation/ResourceBundleMessageInterpolator.java
Log:
HV-336

Modified: validator/trunk/hibernate-validator/src/main/java/org/hibernate/validator/messageinterpolation/ResourceBundleMessageInterpolator.java
===================================================================
--- validator/trunk/hibernate-validator/src/main/java/org/hibernate/validator/messageinterpolation/ResourceBundleMessageInterpolator.java	2010-06-21 13:30:26 UTC (rev 19776)
+++ validator/trunk/hibernate-validator/src/main/java/org/hibernate/validator/messageinterpolation/ResourceBundleMessageInterpolator.java	2010-06-21 13:35:31 UTC (rev 19777)
@@ -79,25 +79,9 @@
 	private final boolean cacheMessages;
 
 	public ResourceBundleMessageInterpolator() {
-		this( ( ResourceBundleLocator ) null );
+		this( null );
 	}
 
-	/**
-	 * @param resourceBundle the resource bundle to use
-	 *
-	 * @deprecated Use {@link ResourceBundleMessageInterpolator#ResourceBundleMessageInterpolator(ResourceBundleLocator)} instead.
-	 */
-	@Deprecated
-	public ResourceBundleMessageInterpolator(final ResourceBundle resourceBundle) {
-		this(
-				new PlatformResourceBundleLocator( USER_VALIDATION_MESSAGES ) {
-					public ResourceBundle getResourceBundle(Locale locale) {
-						return locale == Locale.getDefault() ? resourceBundle : super.getResourceBundle( locale );
-					}
-				}
-		);
-	}
-
 	public ResourceBundleMessageInterpolator(ResourceBundleLocator userResourceBundleLocator) {
 		this( userResourceBundleLocator, true );
 	}



More information about the hibernate-commits mailing list