From: Andreas L. Delmelle Date: Tue, 22 Feb 2011 19:38:25 +0000 (+0000) Subject: Fix FindBugs warning... X-Git-Tag: fop-1_1rc1old~273 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0d7a18773e67f9074522fd7cb3787dcc2db2b648;p=xmlgraphics-fop.git Fix FindBugs warning... git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073468 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/expr/NamedColorFunction.java b/src/java/org/apache/fop/fo/expr/NamedColorFunction.java index 2bceec8dc..53b9effdb 100644 --- a/src/java/org/apache/fop/fo/expr/NamedColorFunction.java +++ b/src/java/org/apache/fop/fo/expr/NamedColorFunction.java @@ -62,7 +62,6 @@ class NamedColorFunction extends FunctionBase { pe.setPropertyInfo(pInfo); throw pe; } - String src = (cp != null ? cp.getSrc() : ""); float red = 0, green = 0, blue = 0; red = args[0].getNumber().floatValue(); @@ -85,7 +84,7 @@ class NamedColorFunction extends FunctionBase { sb.append(',').append(green / 255f); sb.append(',').append(blue / 255f); sb.append(',').append(colorProfileName); - sb.append(',').append(src); + sb.append(',').append(cp.getSrc()); sb.append(", '").append(colorName).append('\''); sb.append(")");