aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2011-02-22 19:38:25 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2011-02-22 19:38:25 +0000
commit0d7a18773e67f9074522fd7cb3787dcc2db2b648 (patch)
tree9bd6e527c588f6a7dd52ccb2e6f3e965e2f8d661
parent1333b12d434990bb29e19be5859fef67cc476b54 (diff)
downloadxmlgraphics-fop-0d7a18773e67f9074522fd7cb3787dcc2db2b648.tar.gz
xmlgraphics-fop-0d7a18773e67f9074522fd7cb3787dcc2db2b648.zip
Fix FindBugs warning...
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1073468 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/fo/expr/NamedColorFunction.java3
1 files changed, 1 insertions, 2 deletions
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(")");