ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r718212 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java
Date Mon, 17 Nov 2008 09:42:57 GMT
Author: bodewig
Date: Mon Nov 17 01:42:57 2008
New Revision: 718212

URL: http://svn.apache.org/viewvc?rev=718212&view=rev
Log:
better choice of exception

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java?rev=718212&r1=718211&r2=718212&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java Mon Nov
17 01:42:57 2008
@@ -64,7 +64,7 @@
      * Not supported.
      */
     public void setName(String name) {
-        throw new UnsupportedOperationException();
+        throw new ImmutableResourceException();
     }
 
     /**
@@ -78,7 +78,7 @@
      * Not supported.
      */
     public void setExists(boolean exists) {
-        throw new UnsupportedOperationException();
+        throw new ImmutableResourceException();
     }
 
     /**
@@ -92,7 +92,7 @@
      * Not supported.
      */
     public void setLastModified(long lastmodified) {
-        throw new UnsupportedOperationException();
+        throw new ImmutableResourceException();
     }
 
     /**
@@ -106,7 +106,7 @@
      * Not supported.
      */
     public void setDirectory(boolean directory) {
-        throw new UnsupportedOperationException();
+        throw new ImmutableResourceException();
     }
 
     /**
@@ -120,7 +120,7 @@
      * Not supported.
      */
     public void setSize(long size) {
-        throw new UnsupportedOperationException();
+        throw new ImmutableResourceException();
     }
 
     /**



Mime
View raw message