harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r823772 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/TextRunBreaker.java
Date Sat, 10 Oct 2009 03:22:45 GMT
Author: ndbeyer
Date: Sat Oct 10 03:22:43 2009
New Revision: 823772

URL: http://svn.apache.org/viewvc?rev=823772&view=rev
Log:
remove unnecessary casts

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/TextRunBreaker.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/TextRunBreaker.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/TextRunBreaker.java?rev=823772&r1=823771&r2=823772&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/TextRunBreaker.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/TextRunBreaker.java
Sat Oct 10 03:22:43 2009
@@ -220,12 +220,11 @@
             // Find appropriate font or place GraphicAttribute there
 
             // 1. Try to pick up CHAR_REPLACEMENT (compatibility)
-            Object value = (GraphicAttribute)
-                    attributes.get(TextAttribute.CHAR_REPLACEMENT);
+            Object value = attributes.get(TextAttribute.CHAR_REPLACEMENT);
 
             if (value == null) {
                 // 2. Try to Get FONT
-                value = (Font)attributes.get(TextAttribute.FONT);
+                value = attributes.get(TextAttribute.FONT);
 
                 if (value == null) {
                     // 3. Try to create font from FAMILY



Mime
View raw message