move loop invariant outside of loop

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-06-17 07:59:01 +00:00
parent 4e60db8b4e
commit 6ea5e99ce4

View File

@ -109,8 +109,9 @@ public abstract class ExtendedColor implements Color {
System.arraycopy(rgb, 1, tmp, 0, 3);
rgb = tmp;
}
double tint = getTint();
for (int i = 0; i < rgb.length; i++){
rgb[i] = applyTint(rgb[i] & 0xFF, getTint());
rgb[i] = applyTint(rgb[i] & 0xFF, tint);
}
}
return rgb;