diff options
| author | 2011-06-09 08:38:12 -0700 | |
|---|---|---|
| committer | 2011-06-09 08:38:12 -0700 | |
| commit | accb54c52f293558d67ff2d246bfa08248c8c072 (patch) | |
| tree | 119cc7a45f38d79035f7e63c5e51a3a9a4695407 | |
| parent | 9eb5847777b317991a44c01b901f35d99485c733 (diff) | |
Change exception thrown when set() called on readonly Property.
Change-Id: I2669e32691c93dfaf07c34ca4d9fe5c6d47d5480
| -rw-r--r-- | core/java/android/util/ReflectiveProperty.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/util/ReflectiveProperty.java b/core/java/android/util/ReflectiveProperty.java index 7bd7428e9da8..6832240f385b 100644 --- a/core/java/android/util/ReflectiveProperty.java +++ b/core/java/android/util/ReflectiveProperty.java @@ -128,7 +128,7 @@ class ReflectiveProperty<T, V> extends Property<T, V> { throw new AssertionError(); } } else { - throw new NoSuchPropertyException("Property is read-only; set() is not implemented"); + throw new UnsupportedOperationException("Property " + getName() +" is read-only"); } } |