Whitespace / indents

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753620 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2016-07-20 22:39:12 +00:00
parent 3fa0449747
commit b15c2b1c53
2 changed files with 333 additions and 346 deletions

View File

@ -61,8 +61,6 @@ import org.apache.poi.util.POILogger;
/** /**
* This class contains the main functionality for the Powerpoint file * This class contains the main functionality for the Powerpoint file
* "reader". It is only a very basic class for now * "reader". It is only a very basic class for now
*
* @author Nick Burch
*/ */
public final class HSLFSlideShowImpl extends POIDocument implements Closeable { public final class HSLFSlideShowImpl extends POIDocument implements Closeable {
public static final int UNSET_OFFSET = -1; public static final int UNSET_OFFSET = -1;

View File

@ -75,11 +75,8 @@ import org.apache.poi.util.Internal;
* *
* This class acts as the bucket that we throw all of the Word data structures * This class acts as the bucket that we throw all of the Word data structures
* into. * into.
*
* @author Ryan Ackley
*/ */
public final class HWPFDocument extends HWPFDocumentCore public final class HWPFDocument extends HWPFDocumentCore {
{
/*package*/ static final String PROPERTY_PRESERVE_BIN_TABLES = "org.apache.poi.hwpf.preserveBinTables"; /*package*/ static final String PROPERTY_PRESERVE_BIN_TABLES = "org.apache.poi.hwpf.preserveBinTables";
private static final String PROPERTY_PRESERVE_TEXT_TABLE = "org.apache.poi.hwpf.preserveTextTable"; private static final String PROPERTY_PRESERVE_TEXT_TABLE = "org.apache.poi.hwpf.preserveTextTable";
@ -257,18 +254,14 @@ public final class HWPFDocument extends HWPFDocumentCore
* miss from output, and text order may be corrupted * miss from output, and text order may be corrupted
*/ */
boolean preserveBinTables = false; boolean preserveBinTables = false;
try try {
{
preserveBinTables = Boolean.parseBoolean( System preserveBinTables = Boolean.parseBoolean( System
.getProperty( PROPERTY_PRESERVE_BIN_TABLES ) ); .getProperty( PROPERTY_PRESERVE_BIN_TABLES ) );
} } catch ( Exception exc ) {
catch ( Exception exc )
{
// ignore; // ignore;
} }
if ( !preserveBinTables ) if ( !preserveBinTables ) {
{
_cbt.rebuild( _cft ); _cbt.rebuild( _cft );
_pbt.rebuild( _text, _cft ); _pbt.rebuild( _text, _cft );
} }
@ -278,17 +271,13 @@ public final class HWPFDocument extends HWPFDocumentCore
* will lead to unpredictable behavior * will lead to unpredictable behavior
*/ */
boolean preserveTextTable = false; boolean preserveTextTable = false;
try try {
{
preserveTextTable = Boolean.parseBoolean( System preserveTextTable = Boolean.parseBoolean( System
.getProperty( PROPERTY_PRESERVE_TEXT_TABLE ) ); .getProperty( PROPERTY_PRESERVE_TEXT_TABLE ) );
} } catch ( Exception exc ) {
catch ( Exception exc )
{
// ignore; // ignore;
} }
if ( !preserveTextTable ) if ( !preserveTextTable ) {
{
_cft = new ComplexFileTable(); _cft = new ComplexFileTable();
_tpt = _cft.getTextPieceTable(); _tpt = _cft.getTextPieceTable();
final TextPiece textPiece = new SinglentonTextPiece( _text ); final TextPiece textPiece = new SinglentonTextPiece( _text );