You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2005/09/30 15:45:57 UTC

svn commit: r292732 - /cocoon/trunk/src/java/org/apache/cocoon/environment/commandline/CommandLineRequest.java

Author: bloritsch
Date: Fri Sep 30 06:45:54 2005
New Revision: 292732

URL: http://svn.apache.org/viewcvs?rev=292732&view=rev
Log:
use NotImplementedException for methods without an implementation

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/environment/commandline/CommandLineRequest.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/environment/commandline/CommandLineRequest.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/environment/commandline/CommandLineRequest.java?rev=292732&r1=292731&r2=292732&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/environment/commandline/CommandLineRequest.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/environment/commandline/CommandLineRequest.java Fri Sep 30 06:45:54 2005
@@ -31,6 +31,7 @@
 import org.apache.cocoon.environment.impl.AbstractRequest;
 import org.apache.commons.collections.IteratorUtils;
 import org.apache.commons.lang.SystemUtils;
+import org.apache.commons.lang.NotImplementedException;
 
 /**
  * Creates a specific servlet request simulation from command line usage.
@@ -406,7 +407,7 @@
     public Locale getLocale() { return Locale.getDefault(); }
     public Enumeration getLocales() {
         // FIXME
-        throw new RuntimeException (getClass().getName() + ".getLocales() method not yet implemented!");
+        throw new NotImplementedException (getClass().getName() + ".getLocales() method not yet implemented!");
     }
 
     public String getAuthType() { return null; }