Skip to content

Commit

Permalink
Fixing commit : S1854 Dead stores should be removed fix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
devFozgul committed Jun 20, 2016
1 parent 2987fac commit 182e18a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ private int ensureBuffer(int offset, int length) throws IOException {
System.arraycopy(this.buffer, 0, newBuffer, 0, currentSize);
System.arraycopy(readBuffer, 0, newBuffer, currentSize, count);
this.buffer = newBuffer;
newBuffer = null;
readBuffer = null;
}
return (lastPos < this.buffer.length) ? length : length - (lastPos - this.buffer.length + 1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ static void getFarthestPointTo(PathIterator3ai<? extends PathElement3ai> pi, int
while (pi.hasNext()) {
pe = pi.next();

boolean foundCandidate = false;
boolean foundCandidate;
final int candidateX;
final int candidateY;
final int candidateZ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2463,14 +2463,15 @@ private static int computeGr(double[] sValue, double[] eValue, double[] uValue,
final double shift = computeShift(sValue[1], eValue[1], sValue[2]);
double fvalue = (Math.abs(sValue[0]) - shift) * (dSign(cb48, sValue[0]) + shift / sValue[0]);
double gvalue = eValue[0];
double rvalue;

rvalue = computeRot(fvalue, gvalue, sinr, cosr, 0);

fvalue = cosr[0] * sValue[0] + sinr[0] * eValue[0];
eValue[0] = cosr[0] * eValue[0] - sinr[0] * sValue[0];
gvalue = sinr[0] * sValue[1];
sValue[1] = cosr[0] * sValue[1];

double rvalue;

rvalue = computeRot(fvalue, gvalue, sinl, cosl, 0);
sValue[0] = rvalue;
fvalue = cosl[0] * eValue[0] + sinl[0] * sValue[1];
Expand Down Expand Up @@ -2747,7 +2748,7 @@ private static int compute2X2(double f, double g, double h,
r = Math.sqrt(l * l + mm);
}

double a = (s + r) * .5;
final double a;

if (ga > fa) {
pmax = 2;
Expand Down

0 comments on commit 182e18a

Please sign in to comment.