From 9ca9975cb07171792f53941d6b7caa5ecdbe4377 Mon Sep 17 00:00:00 2001 From: igoudt Date: Sat, 29 Apr 2017 08:39:26 +0200 Subject: [PATCH] remove sun reference --- Mage.Common/src/main/java/mage/view/CardView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mage.Common/src/main/java/mage/view/CardView.java b/Mage.Common/src/main/java/mage/view/CardView.java index 8ef39ea5fc..f59aecdecf 100644 --- a/Mage.Common/src/main/java/mage/view/CardView.java +++ b/Mage.Common/src/main/java/mage/view/CardView.java @@ -30,7 +30,6 @@ package mage.view; import java.util.*; import java.util.stream.Collectors; -import com.sun.xml.internal.ws.util.StringUtils; import mage.MageObject; import mage.ObjectColor; import mage.abilities.Abilities; @@ -966,7 +965,9 @@ public class CardView extends SimpleCardView { } public String getColorText() { - return StringUtils.capitalize(getColor().getDescription()); + + String color = getColor().getDescription(); + return color.substring(0,1).toUpperCase() + color.substring(1); } public String getTypeText() {