Commit Graph

33 Commits

Author SHA1 Message Date
Javen O'Neal
a4af4fc6c3 fix several findbugs SF_SWITCH_NO_DEFAULT warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1738782 13f79535-47bb-0310-9956-ffa450edef68
2016-04-12 12:03:24 +00:00
Andreas Beeker
d6d47e0bca findbugs fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735319 13f79535-47bb-0310-9956-ffa450edef68
2016-03-16 22:10:27 +00:00
Andreas Beeker
0d29f8b2ec obsoleted Codec classes by HexDump
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706741 13f79535-47bb-0310-9956-ffa450edef68
2015-10-05 00:27:47 +00:00
Andreas Beeker
98e93217fe sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1706648 13f79535-47bb-0310-9956-ffa450edef68
2015-10-04 00:35:30 +00:00
Andreas Beeker
aaafb0270d Bug 58326 - Forbidden APIs patches - first set of changes for locale and timezone settings
also includes fixes for
- name shadowing 
- unused deprecated method "getClipRect" in classes extending Graphics2d
- HexDump - replaced intermediate String.format calls with custom padding
- convert testcases to junit4
- closing resources

also tested with an arbitary timezone (PST) and locale (ru)

supresses forbidden apis check for
- LocaleUtil (the only place where Locale.getDefault() and TimeZone.getDefault() should be called)
- Classes using FontMetrics - without the actual text it's difficult to return something sane

Some usage of UTC and Locale.ROOT might be still wrong, e.g. in MapiMessage we don't access the
extended mapi properties, which might contain the timezone

DataFormatter has now a Observable property which need to be observed when custom formats are used
and the Locale changes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1701688 13f79535-47bb-0310-9956-ffa450edef68
2015-09-07 20:19:50 +00:00
Andreas Beeker
3c609d309b fixed a few forbidden api calls
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700055 13f79535-47bb-0310-9956-ffa450edef68
2015-08-29 15:52:10 +00:00
Andreas Beeker
33ffe01bff - reworked HexDump class - unified array dumps and usage of standard java calls for hex format
- fixed a few findbugs DM_DEFAULT_ENCODING issues
- removed a few System.out/.err calls - instead the poilogger is used
- closed a few left open resource instances

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700040 13f79535-47bb-0310-9956-ffa450edef68
2015-08-29 14:41:12 +00:00
Nick Burch
c451224d84 Fix a handful of forbidden apis identified problems
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1698198 13f79535-47bb-0310-9956-ffa450edef68
2015-08-27 17:21:35 +00:00
Andreas Beeker
d439f080d6 merge trunk to common sl branch
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1691843 13f79535-47bb-0310-9956-ffa450edef68
2015-07-19 19:00:32 +00:00
Nick Burch
4fbce64e1d Allow dumping of null arrays
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690772 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 17:31:04 +00:00
Andreas Beeker
d1f9035400 Fixed several test drivers or the implementation
renamed font functions in HSLFTextRun

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/common_sl@1682356 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 23:32:26 +00:00
Dominik Stadler
3f9c701688 Fix formatting of trailing comma in HexDumps, cover class fully with tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1612496 13f79535-47bb-0310-9956-ffa450edef68
2014-07-22 07:47:14 +00:00
Josh Micich
c304173145 Fixed compiler warnings - unnecessary else
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@805492 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 16:50:24 +00:00
Josh Micich
64aed897ea Removed trailing comma from output of HexDump.toHex()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@694619 13f79535-47bb-0310-9956-ffa450edef68
2008-09-12 06:58:52 +00:00
Josh Micich
43a8618659 Consolidated TableRecord inside FormulaRecordAggregate. Simplifications to FormulaRecord
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@689973 13f79535-47bb-0310-9956-ffa450edef68
2008-08-28 20:39:41 +00:00
Yegor Kozlov
177caeec53 Support for getting OLE objects from HSSFWorkbook. See bug 43222 for details.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@573878 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 16:34:10 +00:00
Henri Yandell
fca4623791 Applying the copy2license.pl script (with tiny modification to allow for more whitespace than it expects in the POI header) to all files. ant jar succeeds, and the svn diff has been verified by eye. Still more files to do, this is the first pass.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@489730 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 19:18:16 +00:00
Glen Stampoultzis
b94ddd0e9f Added image support for POI. See the quick guide for details. Sponsored through superlink software.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353660 13f79535-47bb-0310-9956-ffa450edef68
2005-05-01 11:26:18 +00:00
Andrew C. Oliver
3d6a9d6a48 added a main method so we can use it as a quickie utility (been meaning to do that for years)
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353651 13f79535-47bb-0310-9956-ffa450edef68
2005-04-27 05:44:52 +00:00
Glen Stampoultzis
7bfd22842b Empty byte array case for HexDump
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353579 13f79535-47bb-0310-9956-ffa450edef68
2004-08-10 02:59:52 +00:00
Glen Stampoultzis
e85264cdfb Fixed error with HexDump.java
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353546 13f79535-47bb-0310-9956-ffa450edef68
2004-04-12 02:25:15 +00:00
Glen Stampoultzis
a4047ad573 New licence changes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353545 13f79535-47bb-0310-9956-ffa450edef68
2004-04-09 13:05:39 +00:00
Rainer Klute
79f4e5f844 Hex dump with byte positions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353319 13f79535-47bb-0310-9956-ffa450edef68
2003-08-30 09:05:19 +00:00
Rainer Klute
f3bb5efecf Added a method for a formatted hex dump.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353306 13f79535-47bb-0310-9956-ffa450edef68
2003-08-23 14:49:35 +00:00
Glen Stampoultzis
0e07f23fb3 Fixed concurrency problem in HexDump
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353179 13f79535-47bb-0310-9956-ffa450edef68
2003-06-30 12:20:55 +00:00
Glen Stampoultzis
64967ec532 Changed copyright from 2002 to 2003
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353070 13f79535-47bb-0310-9956-ffa450edef68
2003-04-30 04:39:21 +00:00
Andrew C. Oliver
8b555a177c fixed error with HexDump
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352830 13f79535-47bb-0310-9956-ffa450edef68
2002-09-02 02:08:31 +00:00
Rainer Klute
dd6e097455 Fixed javadoc comment.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352803 13f79535-47bb-0310-9956-ffa450edef68
2002-07-22 08:22:23 +00:00
Glen Stampoultzis
5140e0261d Merged from 1.5 (SST fixes).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352665 13f79535-47bb-0310-9956-ffa450edef68
2002-06-09 12:48:34 +00:00
Andrew C. Oliver
453fe100c5 got SUM working and some debug stuff.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352563 13f79535-47bb-0310-9956-ffa450edef68
2002-04-30 01:05:49 +00:00
Said Ryan Ackley
6fe733d9b5 Made some changes for HDF types
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352453 13f79535-47bb-0310-9956-ffa450edef68
2002-04-19 22:30:50 +00:00
Glen Stampoultzis
9411fb08d8 Added support for automatic record generation
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352078 13f79535-47bb-0310-9956-ffa450edef68
2002-02-10 04:32:07 +00:00
Andrew C. Oliver
895297512d Initial revision
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352063 13f79535-47bb-0310-9956-ffa450edef68
2002-01-31 02:22:28 +00:00