mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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
fd12e273dc
commit
c4d5eb82b8
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user