You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2008/11/17 10:42:57 UTC
svn commit: r718212 -
/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/MappedResource.java
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();
}
/**