classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: More SimpleAttributeSet fixes


From: Anthony Balkissoon
Subject: [cp-patches] FYI: More SimpleAttributeSet fixes
Date: Tue, 27 Sep 2005 17:33:29 -0400

containsAttribute should be searching up the resolve parent hierarchy,
not just looking locally.

This patch also implements the isEqual performance tweak that I
mentioned earlier on the list.

2005-09-27  Anthony Balkissoon  <address@hidden>

        * javax/swing/text/SimpleAttributeSet.java:
        (containsAttribute): Check the resolve parent if the attribute is not
        found locally.
        (containsAttributeLocally): New package-private method.
        (isEqual): Re-implemented.  Return true if the two sets have the same
        size and this set contains the given set.

--Tony

Attachment: SimpleAttributeSetFixes.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]