]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix FindBugs warning...
authorAndreas L. Delmelle <adelmelle@apache.org>
Tue, 22 Feb 2011 19:38:25 +0000 (19:38 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Tue, 22 Feb 2011 19:38:25 +0000 (19:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073468 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/expr/NamedColorFunction.java

index 2bceec8dcd3f0d6e51a1e9142297234fc3bbf2b8..53b9effdb708cf7c913aa9c45c97f923c8aebd67 100644 (file)
@@ -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(")");