diff options
author | Chet Haase <chet@google.com> | 2011-06-10 10:07:59 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2011-06-10 10:07:59 -0700 |
commit | a2f78a3617170aadf91be568e4fbbe56f9dbeebf (patch) | |
tree | b8e265825a7e1ffcd5b0219c3a0e3c2980ad68d5 /core/java | |
parent | be674b18644cda56ba56a78ac7147711861e8dc8 (diff) | |
download | frameworks_base-a2f78a3617170aadf91be568e4fbbe56f9dbeebf.zip frameworks_base-a2f78a3617170aadf91be568e4fbbe56f9dbeebf.tar.gz frameworks_base-a2f78a3617170aadf91be568e4fbbe56f9dbeebf.tar.bz2 |
Change Property.set() to throw UnsupportedOperationException by default
Change-Id: I2326e066e0b7ce63cbafe83a3a37b90a3d148c43
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/util/Property.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/util/Property.java b/core/java/android/util/Property.java index 458e4c3..146db80 100644 --- a/core/java/android/util/Property.java +++ b/core/java/android/util/Property.java @@ -78,11 +78,11 @@ public abstract class Property<T, V> { /** * Sets the value on <code>object</code> which this property represents. If the method is unable - * to set the value on the target object, it will throw a {@link NoSuchPropertyException} + * to set the value on the target object it will throw an {@link UnsupportedOperationException} * exception. */ public void set(T object, V value) { - throw new NoSuchPropertyException("Property is read-only; set() is not implemented"); + throw new UnsupportedOperationException("Property " + getName() +" is read-only"); } /** |