]> source.dussan.org Git - poi.git/commitdiff
whitespace, remove unused variable, expose Set interface for seenNotes, append \n...
authorJaven O'Neal <onealj@apache.org>
Mon, 15 Aug 2016 05:23:34 +0000 (05:23 +0000)
committerJaven O'Neal <onealj@apache.org>
Mon, 15 Aug 2016 05:23:34 +0000 (05:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1756348 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hslf/extractor/PowerPointExtractor.java

index 43c7d69bb1b50aebb5ec636ad91a1822d4dde552..59434f074a9edd0da8282e9ec101c1a1deec34bc 100644 (file)
@@ -240,9 +240,9 @@ public final class PowerPointExtractor extends POIOLE2TextExtractor {
                 }
                 
                 // 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 extends POIOLE2TextExtractor {
 
                                // 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 extends POIOLE2TextExtractor {
                        // 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();