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:
parent
4e60db8b4e
commit
6ea5e99ce4
@ -109,8 +109,9 @@ public abstract class ExtendedColor implements Color {
|
|||||||
System.arraycopy(rgb, 1, tmp, 0, 3);
|
System.arraycopy(rgb, 1, tmp, 0, 3);
|
||||||
rgb = tmp;
|
rgb = tmp;
|
||||||
}
|
}
|
||||||
|
double tint = getTint();
|
||||||
for (int i = 0; i < rgb.length; i++){
|
for (int i = 0; i < rgb.length; i++){
|
||||||
rgb[i] = applyTint(rgb[i] & 0xFF, getTint());
|
rgb[i] = applyTint(rgb[i] & 0xFF, tint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rgb;
|
return rgb;
|
||||||
|
Loading…
Reference in New Issue
Block a user