Author: nbelaevski
Date: 2010-11-01 20:51:39 -0400 (Mon, 01 Nov 2010)
New Revision: 19878
Modified:
trunk/core/impl/src/main/java/org/richfaces/application/MessageFactoryImpl.java
Log:
Fixed checkstyle problem
Modified: trunk/core/impl/src/main/java/org/richfaces/application/MessageFactoryImpl.java
===================================================================
---
trunk/core/impl/src/main/java/org/richfaces/application/MessageFactoryImpl.java 2010-11-02
00:45:49 UTC (rev 19877)
+++
trunk/core/impl/src/main/java/org/richfaces/application/MessageFactoryImpl.java 2010-11-02
00:51:39 UTC (rev 19878)
@@ -91,10 +91,9 @@
private static final Factory<String> FORMAT_FACTORY = new
Factory<String>() {
- public String create(ResourceBundle bundle, Enum<?> messageKey, Object...
args)
- throws MissingResourceException {
+ public String create(ResourceBundle bundle, Enum<?> messageKey, Object...
args) throws MissingResourceException {
String format = bundle.getString(messageKey.toString());
- return format;
+ return format;
}
};
@@ -152,7 +151,7 @@
public String getMessageFormat(FacesContext facesContext, Enum<?> messageKey)
{
String text = detectLocalesAndCreate(facesContext, FORMAT_FACTORY, messageKey);
if (Strings.isNullOrEmpty(text)) {
- throw new IllegalStateException("Format not found");
+ throw new IllegalStateException("Format not found");
}
return text;
Show replies by date