poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r1296976 - in /poi/trunk/src/examples/src/org/apache/poi: hslf/examples/ hssf/usermodel/examples/ ss/examples/formula/ xslf/usermodel/ xwpf/usermodel/
Date Mon, 05 Mar 2012 09:41:33 GMT
Author: yegor
Date: Mon Mar  5 09:41:32 2012
New Revision: 1296976

URL: http://svn.apache.org/viewvc?rev=1296976&view=rev
Log:
optimized unused imports and removed deprecation warnings in poi-examples

Modified:
    poi/trunk/src/examples/src/org/apache/poi/hslf/examples/ApacheconEU08.java
    poi/trunk/src/examples/src/org/apache/poi/hslf/examples/CreateHyperlink.java
    poi/trunk/src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java
    poi/trunk/src/examples/src/org/apache/poi/hslf/examples/PPT2PNG.java
    poi/trunk/src/examples/src/org/apache/poi/hssf/usermodel/examples/EmeddedObjects.java
    poi/trunk/src/examples/src/org/apache/poi/ss/examples/formula/UserDefinedFunctionExample.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java
    poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleImages.java

Modified: poi/trunk/src/examples/src/org/apache/poi/hslf/examples/ApacheconEU08.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/hslf/examples/ApacheconEU08.java?rev=1296976&r1=1296975&r2=1296976&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/hslf/examples/ApacheconEU08.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/hslf/examples/ApacheconEU08.java Mon Mar  5
09:41:32 2012
@@ -23,7 +23,6 @@ import org.apache.poi.hslf.record.TextHe
 
 import java.io.IOException;
 import java.io.FileOutputStream;
-import java.io.File;
 import java.awt.*;
 
 /**

Modified: poi/trunk/src/examples/src/org/apache/poi/hslf/examples/CreateHyperlink.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/hslf/examples/CreateHyperlink.java?rev=1296976&r1=1296975&r2=1296976&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/hslf/examples/CreateHyperlink.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/hslf/examples/CreateHyperlink.java Mon Mar 
5 09:41:32 2012
@@ -18,10 +18,8 @@
 package org.apache.poi.hslf.examples;
 
 import org.apache.poi.hslf.usermodel.SlideShow;
-import org.apache.poi.hslf.usermodel.RichTextRun;
 import org.apache.poi.hslf.model.*;
 
-import java.io.FileInputStream;
 import java.io.FileOutputStream;
 import java.awt.*;
 

Modified: poi/trunk/src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java?rev=1296976&r1=1296975&r2=1296976&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java Mon Mar  5
09:41:32 2012
@@ -22,7 +22,6 @@ import org.apache.poi.hslf.model.*;
 
 import java.awt.*;
 import java.io.FileOutputStream;
-import java.io.FileInputStream;
 
 /**
  * Demonstrates how to draw into a slide using the HSLF Graphics2D driver.

Modified: poi/trunk/src/examples/src/org/apache/poi/hslf/examples/PPT2PNG.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/hslf/examples/PPT2PNG.java?rev=1296976&r1=1296975&r2=1296976&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/hslf/examples/PPT2PNG.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/hslf/examples/PPT2PNG.java Mon Mar  5 09:41:32
2012
@@ -19,16 +19,12 @@ package org.apache.poi.hslf.examples;
 
 import org.apache.poi.hslf.usermodel.*;
 import org.apache.poi.hslf.model.*;
-import org.apache.poi.hslf.record.TextHeaderAtom;
 
 import javax.imageio.ImageIO;
-import java.io.IOException;
 import java.io.FileOutputStream;
-import java.io.File;
 import java.io.FileInputStream;
 import java.awt.*;
 import java.awt.image.BufferedImage;
-import java.awt.geom.AffineTransform;
 import java.awt.geom.Rectangle2D;
 
 /**

Modified: poi/trunk/src/examples/src/org/apache/poi/hssf/usermodel/examples/EmeddedObjects.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/hssf/usermodel/examples/EmeddedObjects.java?rev=1296976&r1=1296975&r2=1296976&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/hssf/usermodel/examples/EmeddedObjects.java
(original)
+++ poi/trunk/src/examples/src/org/apache/poi/hssf/usermodel/examples/EmeddedObjects.java
Mon Mar  5 09:41:32 2012
@@ -43,11 +43,11 @@ public class EmeddedObjects {
                 //System.out.println(entry.getName() + ": " + embeddedWorkbook.getNumberOfSheets());
             } else if (oleName.equals("Document")) {
                 DirectoryNode dn = (DirectoryNode) obj.getDirectory();
-                HWPFDocument embeddedWordDocument = new HWPFDocument(dn, fs);
+                HWPFDocument embeddedWordDocument = new HWPFDocument(dn);
                 //System.out.println(entry.getName() + ": " + embeddedWordDocument.getRange().text());
             }  else if (oleName.equals("Presentation")) {
                 DirectoryNode dn = (DirectoryNode) obj.getDirectory();
-                SlideShow embeddedPowerPointDocument = new SlideShow(new HSLFSlideShow(dn,
fs));
+                SlideShow embeddedPowerPointDocument = new SlideShow(new HSLFSlideShow(dn));
                 //System.out.println(entry.getName() + ": " + embeddedPowerPointDocument.getSlides().length);
             } else {
                 if(obj.hasDirectoryEntry()){

Modified: poi/trunk/src/examples/src/org/apache/poi/ss/examples/formula/UserDefinedFunctionExample.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/ss/examples/formula/UserDefinedFunctionExample.java?rev=1296976&r1=1296975&r2=1296976&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/ss/examples/formula/UserDefinedFunctionExample.java
(original)
+++ poi/trunk/src/examples/src/org/apache/poi/ss/examples/formula/UserDefinedFunctionExample.java
Mon Mar  5 09:41:32 2012
@@ -23,7 +23,6 @@ import java.io.IOException ;
 
 import org.apache.poi.openxml4j.exceptions.InvalidFormatException ;
 import org.apache.poi.ss.formula.functions.FreeRefFunction ;
-import org.apache.poi.ss.formula.udf.AggregatingUDFFinder ;
 import org.apache.poi.ss.formula.udf.DefaultUDFFinder ;
 import org.apache.poi.ss.formula.udf.UDFFinder ;
 import org.apache.poi.ss.usermodel.*;

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java?rev=1296976&r1=1296975&r2=1296976&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java Mon Mar  5 09:41:32
2012
@@ -20,7 +20,6 @@
 package org.apache.poi.xslf.usermodel;
 
 import java.awt.*;
-import java.awt.geom.Rectangle2D;
 import java.io.FileOutputStream;
 import java.io.IOException;
 

Modified: poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleImages.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleImages.java?rev=1296976&r1=1296975&r2=1296976&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleImages.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/SimpleImages.java Mon Mar  5
09:41:32 2012
@@ -19,12 +19,9 @@
 package org.apache.poi.xwpf.usermodel;
 
 import org.apache.poi.util.Units;
-import org.openxmlformats.schemas.wordprocessingml.x2006.main.*;
 
 import java.io.FileInputStream;
 import java.io.FileOutputStream;
-import java.math.BigInteger;
-import java.util.List;
 
 /**
  * Demonstrates how to add pictures in a .docx document



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


Mime
View raw message