poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r1189657 - in /poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom: CurveToCommand.java Formula.java LineToCommand.java MoveToCommand.java QuadToCommand.java
Date Thu, 27 Oct 2011 08:02:04 GMT
Author: yegor
Date: Thu Oct 27 08:02:03 2011
New Revision: 1189657

URL: http://svn.apache.org/viewvc?rev=1189657&view=rev
Log:
keep javac on JDK 1.5 quiet

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/CurveToCommand.java
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/Formula.java
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/LineToCommand.java
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/MoveToCommand.java
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/QuadToCommand.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/CurveToCommand.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/CurveToCommand.java?rev=1189657&r1=1189656&r2=1189657&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/CurveToCommand.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/CurveToCommand.java Thu Oct 27
08:02:03 2011
@@ -47,6 +47,6 @@ public class CurveToCommand implements P
         double y2 = ctx.getValue(arg4);
         double x3 = ctx.getValue(arg5);
         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);
     }
 }

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/Formula.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/Formula.java?rev=1189657&r1=1189656&r2=1189657&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/Formula.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/Formula.java Thu Oct 27 08:02:03
2011
@@ -39,7 +39,7 @@ public abstract class Formula {
 
     static Map<String, Formula> builtInFormulas = new HashMap<String, Formula>();
     static {
-        // 3 x 360¡ / 4 = 270¡
+        // 3 x 360 / 4 = 270
         builtInFormulas.put("3cd4",  new Formula(){
             @Override
             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(){
             @Override
             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(){
             @Override
             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(){
             @Override
             double evaluate(Context ctx){
@@ -85,7 +85,7 @@ public abstract class Formula {
 
          });
 
-        // 360¡ / 2 = 180¡
+        // 360 / 2 = 180
         builtInFormulas.put("cd2",  new Formula(){
             @Override
             double evaluate(Context ctx){
@@ -94,7 +94,7 @@ public abstract class Formula {
 
          });
 
-        // 360¡ / 4 = 90¡
+        // 360 / 4 = 90
         builtInFormulas.put("cd4",  new Formula(){
             @Override
             double evaluate(Context ctx){
@@ -103,7 +103,7 @@ public abstract class Formula {
 
          });
 
-        // 360¡ / 8 = 45¡
+        // 360 / 8 = 45
         builtInFormulas.put("cd8",  new Formula(){
             @Override
             double evaluate(Context ctx){

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/LineToCommand.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/LineToCommand.java?rev=1189657&r1=1189656&r2=1189657&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/LineToCommand.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/LineToCommand.java Thu Oct 27
08:02:03 2011
@@ -39,6 +39,6 @@ public class LineToCommand implements Pa
     public void execute(GeneralPath path, Context ctx){
         double x = ctx.getValue(arg1);
         double y = ctx.getValue(arg2);
-        path.lineTo(x, y);
+        path.lineTo((float)x, (float)y);
     }
 }

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/MoveToCommand.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/MoveToCommand.java?rev=1189657&r1=1189656&r2=1189657&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/MoveToCommand.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/MoveToCommand.java Thu Oct 27
08:02:03 2011
@@ -39,6 +39,6 @@ public class MoveToCommand implements Pa
     public void execute(GeneralPath path, Context ctx){
         double x = ctx.getValue(arg1);
         double y = ctx.getValue(arg2);
-        path.moveTo(x, y);
+        path.moveTo((float)x, (float)y);
     }
 }

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/QuadToCommand.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/QuadToCommand.java?rev=1189657&r1=1189656&r2=1189657&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/QuadToCommand.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/model/geom/QuadToCommand.java Thu Oct 27
08:02:03 2011
@@ -43,6 +43,6 @@ public class QuadToCommand implements Pa
         double y1 = ctx.getValue(arg2);
         double x2 = ctx.getValue(arg3);
         double y2 = ctx.getValue(arg4);
-        path.quadTo(x1, y1, x2, y2);
+        path.quadTo((float)x1, (float)y1, (float)x2, (float)y2);
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message