CVSROOT:        /cvsroot/classpath
Module name:    classpath
Branch:         
Changes by:     Anthony Balkissoon <[EMAIL PROTECTED]>  05/12/21 20:27:32

Modified files:
        .              : ChangeLog 
        javax/swing/text: DefaultStyledDocument.java StyleContext.java 

Log message:
        2005-12-21  Anthony Balkissoon  <[EMAIL PROTECTED]>
        
        * javax/swing/text/DefaultStyledDocument.java:
        (insertUpdate): If the AttributeSet argument is null use an empty
        AttributeSet for comparisons. No need to create a new LeafElement to
        compare AttributeSets (ie - remove the hack added yesterday).
        * javax/swing/text/StyleContext.java:
        (SmallAttributeSet.isEqual): Don't return false for null arguments,
        this should throw an NPE instead.  Also, for performance, check that
        sizes are equal and one set contains the other, rather than checking
        that each set contains the other.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5875&tr2=1.5876&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/DefaultStyledDocument.java.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/StyleContext.java.diff?tr1=1.7&tr2=1.8&r1=text&r2=text


Reply via email to