more cleanup of deprecation warnings generated by javac
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@949485 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6ee427ddf9
commit
deae43db43
@ -23,6 +23,7 @@ import java.io.FileOutputStream;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public class FontMetricsDumper
|
public class FontMetricsDumper
|
||||||
{
|
{
|
||||||
public static void main( String[] args ) throws IOException
|
public static void main( String[] args ) throws IOException
|
||||||
|
@ -695,6 +695,7 @@ public class DummyGraphics2d
|
|||||||
return g2D.getClipBounds( r );
|
return g2D.getClipBounds( r );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public Rectangle getClipRect() {
|
public Rectangle getClipRect() {
|
||||||
System.out.println( "getClipRect():" );
|
System.out.println( "getClipRect():" );
|
||||||
return g2D.getClipRect();
|
return g2D.getClipRect();
|
||||||
|
@ -432,6 +432,7 @@ public class EscherGraphics
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public Rectangle getClipRect()
|
public Rectangle getClipRect()
|
||||||
{
|
{
|
||||||
return getClipBounds();
|
return getClipBounds();
|
||||||
@ -447,6 +448,7 @@ public class EscherGraphics
|
|||||||
return font;
|
return font;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public FontMetrics getFontMetrics(Font f)
|
public FontMetrics getFontMetrics(Font f)
|
||||||
{
|
{
|
||||||
return Toolkit.getDefaultToolkit().getFontMetrics(f);
|
return Toolkit.getDefaultToolkit().getFontMetrics(f);
|
||||||
|
@ -70,7 +70,7 @@ public class TOC {
|
|||||||
p.setRsidR("00EF7E24".getBytes());
|
p.setRsidR("00EF7E24".getBytes());
|
||||||
p.setRsidRDefault("00EF7E24".getBytes());
|
p.setRsidRDefault("00EF7E24".getBytes());
|
||||||
p.addNewPPr().addNewPStyle().setVal("TOCHeading");
|
p.addNewPPr().addNewPStyle().setVal("TOCHeading");
|
||||||
p.addNewR().addNewT().set("Table of Contents");
|
p.addNewR().addNewT().setStringValue("Table of Contents");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Internal
|
@Internal
|
||||||
@ -93,7 +93,7 @@ public class TOC {
|
|||||||
pPr.addNewRPr().addNewNoProof();
|
pPr.addNewRPr().addNewNoProof();
|
||||||
CTR run = p.addNewR();
|
CTR run = p.addNewR();
|
||||||
run.addNewRPr().addNewNoProof();
|
run.addNewRPr().addNewNoProof();
|
||||||
run.addNewT().set(title);
|
run.addNewT().setStringValue(title);
|
||||||
run = p.addNewR();
|
run = p.addNewR();
|
||||||
run.addNewRPr().addNewNoProof();
|
run.addNewRPr().addNewNoProof();
|
||||||
run.addNewTab();
|
run.addNewTab();
|
||||||
@ -106,7 +106,7 @@ public class TOC {
|
|||||||
CTText text = run.addNewInstrText();
|
CTText text = run.addNewInstrText();
|
||||||
text.setSpace(Space.PRESERVE);
|
text.setSpace(Space.PRESERVE);
|
||||||
// bookmark reference
|
// bookmark reference
|
||||||
text.set(" PAGEREF _Toc" + bookmarkRef + " \\h ");
|
text.setStringValue(" PAGEREF _Toc" + bookmarkRef + " \\h ");
|
||||||
p.addNewR().addNewRPr().addNewNoProof();
|
p.addNewR().addNewRPr().addNewNoProof();
|
||||||
run = p.addNewR();
|
run = p.addNewR();
|
||||||
run.addNewRPr().addNewNoProof();
|
run.addNewRPr().addNewNoProof();
|
||||||
@ -114,7 +114,7 @@ public class TOC {
|
|||||||
// page number run
|
// page number run
|
||||||
run = p.addNewR();
|
run = p.addNewR();
|
||||||
run.addNewRPr().addNewNoProof();
|
run.addNewRPr().addNewNoProof();
|
||||||
run.addNewT().set(Integer.valueOf(page).toString());
|
run.addNewT().setStringValue(Integer.valueOf(page).toString());
|
||||||
run = p.addNewR();
|
run = p.addNewR();
|
||||||
run.addNewRPr().addNewNoProof();
|
run.addNewRPr().addNewNoProof();
|
||||||
run.addNewFldChar().setFldCharType(STFldCharType.END);
|
run.addNewFldChar().setFldCharType(STFldCharType.END);
|
||||||
|
Loading…
Reference in New Issue
Block a user