Inspector error in 94.633,
The inspector is giving a lot of bad advice.
private int toPixelY( double y )
return yPixelBase - (int) Math.round( ( y - ylow ) * scaley );
It thinks you can remove the (int) cast.
yPixelBase, y, ylow are int. scaley is double.
Similarly it thinks you can remove the cast in:
final int estimatedLines = ( int ) file.length() / 50;
where file is a File.
Any code of this form:
int v = -1 /* default value */;
v = Integer.parseInt( s );
catch ( InvalidNumberFormatExecption e )
out.println( v );
It thinks you can get rid of the initial value. When you take it out,
of course JavaC complains.
Roedy Green Canadian Mind Products
If you tell a computer the same fact in more than one place, unless you have an automated mechanism to ensure they stay in sync, the versions of the fact will eventually get out of sync.