keep javac on JDK 1.5 quiet

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1189657 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2011-10-27 08:02:03 +00:00
parent 7299feef29
commit cc0dbb38f6
5 changed files with 11 additions and 11 deletions

View File

@ -47,6 +47,6 @@ public class CurveToCommand implements PathCommand {
double y2 = ctx.getValue(arg4); double y2 = ctx.getValue(arg4);
double x3 = ctx.getValue(arg5); double x3 = ctx.getValue(arg5);
double y3 = ctx.getValue(arg6); double y3 = ctx.getValue(arg6);
path.curveTo(x1, y1, x2, y2, x3, y3); path.curveTo((float)x1, (float)y1, (float)x2, (float)y2, (float)x3, (float)y3);
} }
} }

View File

@ -39,7 +39,7 @@ public abstract class Formula {
static Map<String, Formula> builtInFormulas = new HashMap<String, Formula>(); static Map<String, Formula> builtInFormulas = new HashMap<String, Formula>();
static { static {
// 3 x 360 / 4 = 270 // 3 x 360 / 4 = 270
builtInFormulas.put("3cd4", new Formula(){ builtInFormulas.put("3cd4", new Formula(){
@Override @Override
double evaluate(Context ctx){ double evaluate(Context ctx){
@ -48,7 +48,7 @@ public abstract class Formula {
}); });
// 3 x 360 / 8 = 135 // 3 x 360 / 8 = 135
builtInFormulas.put("3cd8", new Formula(){ builtInFormulas.put("3cd8", new Formula(){
@Override @Override
double evaluate(Context ctx){ double evaluate(Context ctx){
@ -57,7 +57,7 @@ public abstract class Formula {
}); });
// 5 x 360 / 8 = 225 // 5 x 360 / 8 = 225
builtInFormulas.put("5cd8", new Formula(){ builtInFormulas.put("5cd8", new Formula(){
@Override @Override
double evaluate(Context ctx){ double evaluate(Context ctx){
@ -66,7 +66,7 @@ public abstract class Formula {
}); });
// 7 x 360 / 8 = 315 // 7 x 360 / 8 = 315
builtInFormulas.put("7cd8", new Formula(){ builtInFormulas.put("7cd8", new Formula(){
@Override @Override
double evaluate(Context ctx){ double evaluate(Context ctx){
@ -85,7 +85,7 @@ public abstract class Formula {
}); });
// 360 / 2 = 180 // 360 / 2 = 180
builtInFormulas.put("cd2", new Formula(){ builtInFormulas.put("cd2", new Formula(){
@Override @Override
double evaluate(Context ctx){ double evaluate(Context ctx){
@ -94,7 +94,7 @@ public abstract class Formula {
}); });
// 360 / 4 = 90 // 360 / 4 = 90
builtInFormulas.put("cd4", new Formula(){ builtInFormulas.put("cd4", new Formula(){
@Override @Override
double evaluate(Context ctx){ double evaluate(Context ctx){
@ -103,7 +103,7 @@ public abstract class Formula {
}); });
// 360 / 8 = 45 // 360 / 8 = 45
builtInFormulas.put("cd8", new Formula(){ builtInFormulas.put("cd8", new Formula(){
@Override @Override
double evaluate(Context ctx){ double evaluate(Context ctx){

View File

@ -39,6 +39,6 @@ public class LineToCommand implements PathCommand {
public void execute(GeneralPath path, Context ctx){ public void execute(GeneralPath path, Context ctx){
double x = ctx.getValue(arg1); double x = ctx.getValue(arg1);
double y = ctx.getValue(arg2); double y = ctx.getValue(arg2);
path.lineTo(x, y); path.lineTo((float)x, (float)y);
} }
} }

View File

@ -39,6 +39,6 @@ public class MoveToCommand implements PathCommand {
public void execute(GeneralPath path, Context ctx){ public void execute(GeneralPath path, Context ctx){
double x = ctx.getValue(arg1); double x = ctx.getValue(arg1);
double y = ctx.getValue(arg2); double y = ctx.getValue(arg2);
path.moveTo(x, y); path.moveTo((float)x, (float)y);
} }
} }

View File

@ -43,6 +43,6 @@ public class QuadToCommand implements PathCommand {
double y1 = ctx.getValue(arg2); double y1 = ctx.getValue(arg2);
double x2 = ctx.getValue(arg3); double x2 = ctx.getValue(arg3);
double y2 = ctx.getValue(arg4); double y2 = ctx.getValue(arg4);
path.quadTo(x1, y1, x2, y2); path.quadTo((float)x1, (float)y1, (float)x2, (float)y2);
} }
} }