You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by on...@apache.org on 2016/08/15 05:23:34 UTC
svn commit: r1756348 -
/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java
Author: onealj
Date: Mon Aug 15 05:23:34 2016
New Revision: 1756348
URL: http://svn.apache.org/viewvc?rev=1756348&view=rev
Log:
whitespace, remove unused variable, expose Set interface for seenNotes, append \n character instead of String
Modified:
poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java
Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java?rev=1756348&r1=1756347&r2=1756348&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java Mon Aug 15 05:23:34 2016
@@ -240,9 +240,9 @@ public final class PowerPointExtractor e
}
// Slide header, if set
- ret.append(headerText);
+ ret.append(headerText);
- // Slide text
+ // Slide text
textRunsToText(ret, slide.getTextParagraphs());
// Table text
@@ -256,14 +256,13 @@ public final class PowerPointExtractor e
// Comments, if requested and present
if (getCommentText) {
- Comment[] comments = slide.getComments();
for (Comment comment : slide.getComments()) {
ret.append(comment.getAuthor() + " - " + comment.getText() + "\n");
}
}
}
if (getNoteText) {
- ret.append("\n");
+ ret.append('\n');
}
}
@@ -271,7 +270,7 @@ public final class PowerPointExtractor e
// Not currently using _notes, as that can have the notes of
// master sheets in. Grab Slide list, then work from there,
// but ensure no duplicates
- HashSet<Integer> seenNotes = new HashSet<Integer>();
+ Set<Integer> seenNotes = new HashSet<Integer>();
String headerText = "";
String footerText = "";
HeadersFooters hf = _show.getNotesHeadersFooters();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org