diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-29 06:11:27 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-29 06:11:27 +0000 |
commit | cdef70fd9b9d93947e1ed58087503d3b6edf078e (patch) | |
tree | 8b891280570aeee72e08a8b18e80a6cacbeefad4 /libjava/java/beans/FeatureDescriptor.java | |
parent | 5cb9d0d850f8e082972dbacacf5b92740e5915b2 (diff) | |
download | ppe42-gcc-cdef70fd9b9d93947e1ed58087503d3b6edf078e.tar.gz ppe42-gcc-cdef70fd9b9d93947e1ed58087503d3b6edf078e.zip |
2005-04-29 Robert Schuster <thebohemian@gmx.net>
* java/beans/FeatureDescriptor.java:
(getShortDescription): Implemented fallback mechanism and fixed
documentation (fixes bug #12637).
(getDisplayName): Dito.
2005-04-29 Robert Schuster <thebohemian@gmx.net>
* java/beans/Introspector.java: Fixed bug #12624, BeanDescriptors
will now be set correctly.
(flushCaches): Now flushes all cached intermediate data.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98975 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/beans/FeatureDescriptor.java')
-rw-r--r-- | libjava/java/beans/FeatureDescriptor.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libjava/java/beans/FeatureDescriptor.java b/libjava/java/beans/FeatureDescriptor.java index 68141cf2f44..0d20c5539ae 100644 --- a/libjava/java/beans/FeatureDescriptor.java +++ b/libjava/java/beans/FeatureDescriptor.java @@ -1,5 +1,5 @@ /* java.beans.FeatureDescriptor - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -57,7 +57,6 @@ import java.util.Hashtable; * * @author John Keiser * @since 1.1 - * @version 1.1.0, 31 May 1998 */ public class FeatureDescriptor @@ -99,10 +98,13 @@ public class FeatureDescriptor /** * Get the localized (display) name of this feature. + * + * @returns The localized display name of this feature or falls + * back to the programmatic name. */ public String getDisplayName() { - return displayName; + return (displayName == null) ? name : displayName; } /** @@ -117,10 +119,14 @@ public class FeatureDescriptor /** * Get the localized short description for this feature. + * + * @returns A short localized description of this feature or + * what <code>getDisplayName</code> returns in case, that no short description + * is available. */ public String getShortDescription() { - return shortDescription; + return (shortDescription == null) ? getDisplayName() : shortDescription; } /** |