Author: hlship
Date: Thu Jan 12 09:08:57 2006
New Revision: 368409

URL: http://svn.apache.org/viewcvs?rev=368409&view=rev
Log:
Setup a reasonable checkstyle configuration, and fix a large number of errors 
and warnings -- this time, properly checked into trunk!

Modified:
    
jakarta/tapestry/trunk/framework/src/java/org/apache/tapestry/asset/AssetMessages.java

Modified: 
jakarta/tapestry/trunk/framework/src/java/org/apache/tapestry/asset/AssetMessages.java
URL: 
http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/framework/src/java/org/apache/tapestry/asset/AssetMessages.java?rev=368409&r1=368408&r2=368409&view=diff
==============================================================================
--- 
jakarta/tapestry/trunk/framework/src/java/org/apache/tapestry/asset/AssetMessages.java
 (original)
+++ 
jakarta/tapestry/trunk/framework/src/java/org/apache/tapestry/asset/AssetMessages.java
 Thu Jan 12 09:08:57 2006
@@ -1,4 +1,4 @@
-// Copyright 2005 The Apache Software Foundation
+// Copyright 2005, 2006 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
 
 import java.io.IOException;
 
+import org.apache.hivemind.Messages;
 import org.apache.hivemind.Resource;
 import org.apache.hivemind.impl.MessageFormatter;
 
@@ -23,42 +24,48 @@
  * @author Howard M. Lewis Ship
  * @since 4.0
  */
-class AssetMessages
+final class AssetMessages
 {
-    private final static MessageFormatter _formatter = new 
MessageFormatter(AssetMessages.class);
+
+    private final static Messages MESSAGES = new 
MessageFormatter(AssetMessages.class);
+
+    /** @since 4.1 */
+    private AssetMessages()
+    {
+    }
 
     static String missingAsset(String path, Resource resource)
     {
-        return _formatter.format("missing-asset", path, resource);
+        return MESSAGES.format("missing-asset", path, resource);
     }
 
     static String noSuchResource(String resourcePath)
     {
-        return _formatter.format("no-such-resource", resourcePath);
+        return MESSAGES.format("no-such-resource", resourcePath);
     }
 
     static String unableToReadResource(String resourcePath, IOException cause)
     {
-        return _formatter.format("unable-to-read-resource", resourcePath, 
cause);
+        return MESSAGES.format("unable-to-read-resource", resourcePath, cause);
     }
 
     static String md5Mismatch(String path)
     {
-        return _formatter.format("md5-mismatch", path);
+        return MESSAGES.format("md5-mismatch", path);
     }
 
     static String exceptionReportTitle(String path)
     {
-        return _formatter.format("exception-report-title", path);
+        return MESSAGES.format("exception-report-title", path);
     }
 
     static String missingClasspathResource(String path)
     {
-        return _formatter.format("missing-classpath-resource", path);
+        return MESSAGES.format("missing-classpath-resource", path);
     }
 
     static String missingContextResource(String path)
     {
-        return _formatter.format("missing-context-resource", path);
+        return MESSAGES.format("missing-context-resource", path);
     }
-}
\ No newline at end of file
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to