cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject svn commit: r292732 - /cocoon/trunk/src/java/org/apache/cocoon/environment/commandline/CommandLineRequest.java
Date Fri, 30 Sep 2005 13:45:57 GMT
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; }



Mime
View raw message