summaryrefslogtreecommitdiffstats
path: root/src/scratchpad
Commit message (Collapse)AuthorAgeFilesLines
* #57272 - deadlock on corrupted PPT fileAndreas Beeker2014-12-072-45/+85
| | | | | | + some refactoring in HSLFSlideShow, which will be necessary for cryptoapi support git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1643680 13f79535-47bb-0310-9956-ffa450edef68
* Typo and remove unnecessary castsDominik Stadler2014-11-261-5/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1641941 13f79535-47bb-0310-9956-ffa450edef68
* house keeping - fixes for sonarqube blockersAndreas Beeker2014-10-256-51/+93
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1634255 13f79535-47bb-0310-9956-ffa450edef68
* Add a disabled unit test for bug #56880Nick Burch2014-10-091-2/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1630543 13f79535-47bb-0310-9956-ffa450edef68
* Bug 56913 - Replace usages of o.a.p.util.ArrayUtil.copyOf* methods with ↵Andreas Beeker2014-09-053-8/+9
| | | | | | replacements from j.u.Arrays git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1622589 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug 54725 - HWPF where no parent style CHP exists, use an emptyNick Burch2014-07-311-2/+3
| | | | | | set when processing the style to avoid a NPE git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1614926 13f79535-47bb-0310-9956-ffa450edef68
* Add unit test for bug 37625 which verifies that this file can now be loadedDominik Stadler2014-07-271-1/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613837 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Raúl Wegmann from bug #56735 / GitHub Pull #10 - Rationalise POI ↵Nick Burch2014-07-241-1/+2
| | | | | | temp file creation to the TempFile util class, and allow a system wide setting of where Temp files (eg for SXSSF) go, via TempFile / TempFileCreationStrategy git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613246 13f79535-47bb-0310-9956-ffa450edef68
* For places where an ordered collection is created and used within the ↵Nick Burch2014-07-244-32/+45
| | | | | | context of a single thread, and there are no thread safety concerns, use ArrayList not Vector. See bug #54838 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613186 13f79535-47bb-0310-9956-ffa450edef68
* Add missing @Overrides, reformat some files, increase coverage slightly,Dominik Stadler2014-06-1110-255/+286
| | | | | | | comments, fix Eclipse warnings and add close() calls in some tests and in HMEFMessage() to close files during tests correctly. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1602008 13f79535-47bb-0310-9956-ffa450edef68
* Apache POI - Use assertArrayEquals() instead of assertTrue(Arrays.equals()), ↵Dominik Stadler2014-05-1616-142/+172
| | | | | | this way we get better information on failure git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1595190 13f79535-47bb-0310-9956-ffa450edef68
* Based on reading of the new file format docs, start to tweak how fixed ↵Nick Burch2014-05-113-44/+88
| | | | | | length vs variable length / multi-valued properties are handled git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1593861 13f79535-47bb-0310-9956-ffa450edef68
* Outlook sometimes stores a codepage of ANSI when it means 1252, detect and ↵Nick Burch2014-05-081-0/+6
| | | | | | alias, fixes bug #53983 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1593306 13f79535-47bb-0310-9956-ffa450edef68
* Implement a few more MAPI property typesNick Burch2014-05-082-2/+105
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1593298 13f79535-47bb-0310-9956-ffa450edef68
* Fix inconsistent indentsNick Burch2014-05-081-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1593297 13f79535-47bb-0310-9956-ffa450edef68
* Some encryption fixes:Andreas Beeker2014-04-211-10/+5
| | | | | | | | | - don't rely on SecretKey object having the right algorithm set - leave encryption-description parsing of string/stream to xmlbeans and refactor it to one location - use namespaces of schema instead of hard-coded strings - use CryptoFunctions.getMessageDigest() instead of code duplication git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1588874 13f79535-47bb-0310-9956-ffa450edef68
* Rather than having lots of classes all create their own XML ↵Nick Burch2014-04-159-34/+25
| | | | | | DocumentBuilderFactory instance, push that logic to a helper which sets all the right defaults git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1587739 13f79535-47bb-0310-9956-ffa450edef68
* performance issue: removed instantiation of new String object by copying an ↵Cédric Walter2014-03-312-2/+2
| | | | | | existing string. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1583366 13f79535-47bb-0310-9956-ffa450edef68
* performance issue logging calls are expensive because of the objects created ↵Cédric Walter2014-03-316-29/+74
| | | | | | when assembling the log messages. Using the check() method of the logging sub-system can prevent object creation git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1583357 13f79535-47bb-0310-9956-ffa450edef68
* Avoid an IndexOutOfBoundsException if there are no property nodes when ↵Nick Burch2014-03-181-2/+3
| | | | | | searching for the start index, return -1 instead git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1578929 13f79535-47bb-0310-9956-ffa450edef68
* When looking for text run related records after a TextHeaderAtom, provide a ↵Nick Burch2014-03-152-28/+40
| | | | | | cleaner way to skip ones we don't care about, and a cleaner way to find the StyleTextPropAtom. Should fix #56260 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1577803 13f79535-47bb-0310-9956-ffa450edef68
* Implement MasterTextPropAtom, which provides the indents for a run of text, ↵Nick Burch2014-03-154-8/+226
| | | | | | needed for #56260 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1577802 13f79535-47bb-0310-9956-ffa450edef68
* #56260 Partial fix for a slide with a TextHeaderAtom but no other atoms ↵Nick Burch2014-03-143-7/+89
| | | | | | related to it, which is followed by another TextHeaderAtom straight away git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1577537 13f79535-47bb-0310-9956-ffa450edef68
* More helpful visio v5 exception, see bug #56171Nick Burch2014-02-202-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1570388 13f79535-47bb-0310-9956-ffa450edef68
* The junit test failed with the original test-file ↵Andreas Beeker2014-02-201-3/+3
| | | | | | (CDT_Data_Retention-PPT.ppt), so another check was necessary git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1569999 13f79535-47bb-0310-9956-ffa450edef68
* Bug 55732 - PPT can't open, fails with "Couldn't instantiate .... ↵Andreas Beeker2014-02-192-29/+54
| | | | | | StyleTextProp9Atom : java.lang.ArrayIndexOutOfBoundsException: 56" git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1569984 13f79535-47bb-0310-9956-ffa450edef68
* upgraded to junit4 (before other changes)Andreas Beeker2014-02-191-27/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1569972 13f79535-47bb-0310-9956-ffa450edef68
* FindBugs fixAndreas Beeker2014-02-163-6/+3
| | | | | | | - fixed "Equals method should not assume anything about the type of its argument" - see http://findbugs.sourceforge.net/bugDescriptions.html#BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568861 13f79535-47bb-0310-9956-ffa450edef68
* FindBugs fixAndreas Beeker2014-02-1613-91/+60
| | | | | | | - fixed "equals() method does not check for null argument" - see http://findbugs.sourceforge.net/bugDescriptions.html#NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568812 13f79535-47bb-0310-9956-ffa450edef68
* FindBugs fixAndreas Beeker2014-02-163-3/+5
| | | | | | | | | - fixed/checked various null pointer related entries - see http://findbugs.sourceforge.net/bugDescriptions.html#NP_NULL_PARAM_DEREF - ... NP_NULL_ON_SOME_PATH, NP_NULL_ON_SOME_PATH_EXCEPTION git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568789 13f79535-47bb-0310-9956-ffa450edef68
* Fix unit tests broken by newly added test-file, ignore TestFontRendering as ↵Dominik Stadler2014-02-161-0/+2
| | | | | | it is inherently unstable currently git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568744 13f79535-47bb-0310-9956-ffa450edef68
* Adjust test to write the failing PNG in case expected and actual do not matchDominik Stadler2014-02-161-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568740 13f79535-47bb-0310-9956-ffa450edef68
* Provide more output on test that failed for me locallyDominik Stadler2014-02-151-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568558 13f79535-47bb-0310-9956-ffa450edef68
* FindBugs fixAndreas Beeker2014-02-143-6/+7
| | | | | | | | - fixed "Should be a static inner class" - see http://findbugs.sourceforge.net/bugDescriptions.html#SIC_INNER_SHOULD_BE_STATIC git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568178 13f79535-47bb-0310-9956-ffa450edef68
* FindBugs fixAndreas Beeker2014-02-1313-51/+88
| | | | | | | | - fixed "Field isn't final but should be" - see http://findbugs.sourceforge.net/bugDescriptions.html#MS_SHOULD_BE_FINAL git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568145 13f79535-47bb-0310-9956-ffa450edef68
* Bug 55902 - Mixed fonts issue with Chinese characters (unable to form images ↵Andreas Beeker2014-02-114-46/+223
| | | | | | from ppt) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1567455 13f79535-47bb-0310-9956-ffa450edef68
* FindBugs fixAndreas Beeker2014-02-0915-5/+108
| | | | | | | | - fixed "Class defines equals() and uses Object.hashCode()" - see http://findbugs.sourceforge.net/bugDescriptions.html#HE_EQUALS_USE_HASHCODE - implemented UnicodeString.ExtRst.hashCode() + junit-test git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1566427 13f79535-47bb-0310-9956-ffa450edef68
* Fix up whitespace / indents to be consistentNick Burch2014-02-012-409/+406
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1563491 13f79535-47bb-0310-9956-ffa450edef68
* Fix javadoc formattingNick Burch2014-02-011-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1563489 13f79535-47bb-0310-9956-ffa450edef68
* Expose the StyleIndex of CharacterRuns, and expand the range style tests to ↵Nick Burch2014-02-013-10/+59
| | | | | | cover this + related git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1563486 13f79535-47bb-0310-9956-ffa450edef68
* Added license headersAndreas Beeker2014-01-181-0/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1559297 13f79535-47bb-0310-9956-ffa450edef68
* javadoc fixAndreas Beeker2014-01-114-16/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1557290 13f79535-47bb-0310-9956-ffa450edef68
* remove some unused imports and some useless TODOs, slightly moreDominik Stadler2013-12-311-0/+2
| | | | | | | coverage, @Overrides, more info on failing test, fix some Eclipse warnings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1554535 13f79535-47bb-0310-9956-ffa450edef68
* Bug 45776 - Fix corrupt file problem using TextRun.setTextAndreas Beeker2013-12-292-12/+60
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1554077 13f79535-47bb-0310-9956-ffa450edef68
* Bug 41246 - AIOOBE with missing notes entriesAndreas Beeker2013-12-273-35/+76
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553760 13f79535-47bb-0310-9956-ffa450edef68
* Bug 48593 - [PATCH] Multiple Saves Causes Slide CorruptionAndreas Beeker2013-12-275-166/+301
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553610 13f79535-47bb-0310-9956-ffa450edef68
* Bug 55579 - [PATCH] Patch for add/embed OLE objects into HSLFAndreas Beeker2013-12-264-89/+270
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553435 13f79535-47bb-0310-9956-ffa450edef68
* javadoc and compiler warning house-keepingAndreas Beeker2013-12-252-10/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553428 13f79535-47bb-0310-9956-ffa450edef68
* Fix some JavaDoc items that are reported in the build-outputDominik Stadler2013-12-251-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553404 13f79535-47bb-0310-9956-ffa450edef68
* removed pictureFileZero.ppt from svn as requested by the owner, see ↵Yegor Kozlov2013-12-181-2/+9
| | | | | | discussion on @poi-dev from Dec 12, 2013 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1551845 13f79535-47bb-0310-9956-ffa450edef68