]> source.dussan.org Git - vaadin-framework.git/commitdiff
#5880 Removed some more Java 1.6 api that somehow slipped along
authorLeif Åstrand <leif@vaadin.com>
Tue, 16 Aug 2011 09:08:49 +0000 (09:08 +0000)
committerLeif Åstrand <leif@vaadin.com>
Tue, 16 Aug 2011 09:08:49 +0000 (09:08 +0000)
svn changeset:20405/svn branch:6.7

src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java
src/com/vaadin/ui/TabSheet.java

index 0a69fd3b9d2f336dc033ce1dab5d33fde12c3a57..61883054365bbea477e3a66c3f6269a74049d6b0 100644 (file)
@@ -658,10 +658,10 @@ public class VTabsheet extends VTabsheetBase {
         String oldStyleName = tabStyles.get(index);
         // Find the nth td element
         Element td = (Element) tb.tr.getChild(index);
-        if (styleName != null && !styleName.isEmpty()) {
+        if (styleName != null && styleName.length() != 0) {
             if (!styleName.equals(oldStyleName)) {
                 // If we have a new style name
-                if (oldStyleName != null && !oldStyleName.isEmpty()) {
+                if (oldStyleName != null && oldStyleName.length() != 0) {
                     // Remove old style name if present
                     td.removeClassName(ITEMCELL_CLASSNAME + "-" + oldStyleName);
                 }
index 212f13328be83bd4b0b15bcbc3e3a25d05fe6387..300e507fdd202264a9da8d73a68ae20245a774fe 100644 (file)
@@ -407,7 +407,7 @@ public class TabSheet extends AbstractComponentContainer {
             }
 
             final String styleName = tab.getStyleName();
-            if (styleName != null) {
+            if (styleName != null && styleName.length() != 0) {
                 target.addAttribute(VTabsheet.TAB_STYLE_NAME, styleName);
             }