PJ Fanning
2797d07486
try to fix some jdk 14 build issues due to java.lang.Record causing existing POI Record classes to be ambiguous
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872610 13f79535-47bb-0310-9956-ffa450edef68
2020-01-10 23:13:20 +00:00
PJ Fanning
9e7b0e899e
reformat code
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872568 13f79535-47bb-0310-9956-ffa450edef68
2020-01-09 21:24:31 +00:00
PJ Fanning
b594ec2947
[bug-63998] Support commas, exclamation marks correctly in AreaReference. Thanks to hzwhuang
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872567 13f79535-47bb-0310-9956-ffa450edef68
2020-01-09 21:19:34 +00:00
Andreas Beeker
d1a714f5f1
findbugs fixes and refactor some ClassIDs
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872473 13f79535-47bb-0310-9956-ffa450edef68
2020-01-07 22:46:29 +00:00
Tim Allison
e875bd8143
BUG 64015 -- swap out java.util.BitSet for zaxxer's SparseBitSet
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872445 13f79535-47bb-0310-9956-ffa450edef68
2020-01-07 15:45:07 +00:00
Andreas Beeker
d66af200eb
Sonar fixes - Tests should include assertions
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872302 13f79535-47bb-0310-9956-ffa450edef68
2020-01-03 23:30:36 +00:00
PJ Fanning
5ec079072a
[bug-64044] setCellValue(LocalDate) does not support nulls properly
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872246 13f79535-47bb-0310-9956-ffa450edef68
2020-01-02 14:58:30 +00:00
Andreas Beeker
adb8424bc1
Fix Visio compression
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872223 13f79535-47bb-0310-9956-ffa450edef68
2020-01-01 22:44:42 +00:00
Dominik Stadler
9f35db4f51
Bug 63940: Avoid endless loop/out of memory on string-replace with empty search string
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872145 13f79535-47bb-0310-9956-ffa450edef68
2019-12-31 16:52:55 +00:00
Dominik Stadler
821e164041
Bug 63700: Make D* functions work with numeric result column
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872136 13f79535-47bb-0310-9956-ffa450edef68
2019-12-31 10:41:43 +00:00
Dominik Stadler
3cc54a8dff
Bug 63960: Write pre-evaluated string-values in formula cells with the correct type
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872130 13f79535-47bb-0310-9956-ffa450edef68
2019-12-31 06:34:51 +00:00
Dominik Stadler
bc0dcdf369
Fix bug 63984: AND / OR should treat missing parameters as FALSE
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872125 13f79535-47bb-0310-9956-ffa450edef68
2019-12-30 19:57:11 +00:00
Andreas Beeker
a0770034fc
#64036 - remove reflective calls in Workbook- and SlideShowFactory
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872066 13f79535-47bb-0310-9956-ffa450edef68
2019-12-28 22:39:26 +00:00
Andreas Beeker
c66575c1e7
Migrate all junit tests to Junit 4
...
get rid of references to junit.framework
don't throw AssertionFailedErrors, but use Assert.fail instead
add try-with-resources where it was missing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872041 13f79535-47bb-0310-9956-ffa450edef68
2019-12-27 23:00:13 +00:00
Andreas Beeker
7493473a8e
Replace internal GUID class with ClassID
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871944 13f79535-47bb-0310-9956-ffa450edef68
2019-12-24 19:48:22 +00:00
Andreas Beeker
66471836f5
Replace custom hashCode code with Objects.hash() / Arrays.deepHashCode()
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871913 13f79535-47bb-0310-9956-ffa450edef68
2019-12-23 00:15:55 +00:00
Andreas Beeker
ba6152503e
#64004 - Replace clone() with copy constructor - mainly HSSF classes
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871911 13f79535-47bb-0310-9956-ffa450edef68
2019-12-22 21:44:45 +00:00
Dominik Stadler
5e394a5e10
Let IntelliJ simplify some assertions
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871591 13f79535-47bb-0310-9956-ffa450edef68
2019-12-15 14:53:46 +00:00
Dominik Stadler
1a5cec89d8
Replace manual close with try-with-resources
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871590 13f79535-47bb-0310-9956-ffa450edef68
2019-12-15 14:53:11 +00:00
Dominik Stadler
2748844549
Bug 63749; Make getLastRowNum() and getFirstRow() return -1 instead of 0 on empty Sheets
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871589 13f79535-47bb-0310-9956-ffa450edef68
2019-12-15 14:52:45 +00:00
Andreas Beeker
3fb5e79490
#64004 - Replace clone() with copy constructor
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871563 13f79535-47bb-0310-9956-ffa450edef68
2019-12-14 23:44:26 +00:00
Dominik Stadler
befd31663f
Bug 63569: Adjust handling of check for max allocation of byte array
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871506 13f79535-47bb-0310-9956-ffa450edef68
2019-12-14 13:10:17 +00:00
Dominik Stadler
57b0576f63
Adjust some JavaDoc and fix some IDE warnings
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871505 13f79535-47bb-0310-9956-ffa450edef68
2019-12-14 13:10:12 +00:00
Andreas Beeker
cdd945b0da
Bug 63927 - Inconsistent mapping of Norwegian locales for date formats
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871066 13f79535-47bb-0310-9956-ffa450edef68
2019-12-08 23:36:02 +00:00
Andreas Beeker
1c678f415c
Bug 63779 - Add support for the new Java date/time API added in Java 8
...
Active roundSeconds again
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871065 13f79535-47bb-0310-9956-ffa450edef68
2019-12-08 23:31:20 +00:00
Andreas Beeker
0f29ae8e4d
Sonar fixes - type: bugs / severity: major
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871064 13f79535-47bb-0310-9956-ffa450edef68
2019-12-08 23:29:50 +00:00
Andreas Beeker
b2a33515e9
Sonar Fixes - type: bugs / severity: critical - mostly div by 0
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870976 13f79535-47bb-0310-9956-ffa450edef68
2019-12-07 11:45:44 +00:00
Andreas Beeker
9f2f9dc793
Sonar Fixes
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870856 13f79535-47bb-0310-9956-ffa450edef68
2019-12-05 00:18:36 +00:00
Andreas Beeker
08159e66a7
Sonar Fixes + Refactor scattered XML initializations to XMLHelper
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870769 13f79535-47bb-0310-9956-ffa450edef68
2019-12-03 21:56:47 +00:00
Andreas Beeker
a17a9168b1
Sonar Fixes - fix/annotate type "vulnerability" / severity "blocker"
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870657 13f79535-47bb-0310-9956-ffa450edef68
2019-12-01 02:05:51 +00:00
Andreas Beeker
5f28881a35
change package.html to package-info.java
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870655 13f79535-47bb-0310-9956-ffa450edef68
2019-12-01 00:07:48 +00:00
Andreas Beeker
b4b661acc1
Sonar fixes - use try-with-resources
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870653 13f79535-47bb-0310-9956-ffa450edef68
2019-11-30 23:00:08 +00:00
Andreas Beeker
2a982f62ec
Replace StringBuffer with StringBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870600 13f79535-47bb-0310-9956-ffa450edef68
2019-11-29 23:57:35 +00:00
Andreas Beeker
1562175343
Bug 60656 - Emf image support in slideshows
...
- use Rectangle2D instead of Dimension2D for image bounds
- fix shearing transformation
- fix rendering of font attributes (bold/italic/...)
- emf+: needs its own object table and properties table
- emf+: add linear gradient handler
- emf+: handle brush data of pens
- wmf/emf/emf+: position right aligned text correctly
- emf+: use emf+ instead of emf records in dual-mode
- emf+: handle region data and operations correctly
- emf/+: map font weight to awt font weight correctly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870566 13f79535-47bb-0310-9956-ffa450edef68
2019-11-29 00:39:35 +00:00
Andreas Beeker
7aab19c3b5
GenericRecordJsonWriter fix output of floats and doubles
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870565 13f79535-47bb-0310-9956-ffa450edef68
2019-11-29 00:29:05 +00:00
PJ Fanning
701b67c315
replace more StringBuffers
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870121 13f79535-47bb-0310-9956-ffa450edef68
2019-11-21 22:01:20 +00:00
PJ Fanning
2d6b1800dc
Update javadoc on FinanceLib. This closes #162
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870105 13f79535-47bb-0310-9956-ffa450edef68
2019-11-21 18:32:35 +00:00
PJ Fanning
cd3f373c44
change some tabs to spaces
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870049 13f79535-47bb-0310-9956-ffa450edef68
2019-11-20 10:02:45 +00:00
PJ Fanning
96bf53f3fc
replace some uses of StringBuffer with StringBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870046 13f79535-47bb-0310-9956-ffa450edef68
2019-11-20 08:42:27 +00:00
PJ Fanning
948b0e8f08
convert tabs to spaces
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869962 13f79535-47bb-0310-9956-ffa450edef68
2019-11-18 08:56:06 +00:00
Axel Howind
4f8879f8ef
use zero size arg to toArray(), use Collection.addAll() ( #63805 , second patch)
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869919 13f79535-47bb-0310-9956-ffa450edef68
2019-11-17 08:45:03 +00:00
Andreas Beeker
1794ae97c1
#63918 - Fix texture fill - scale stretched images correctly
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869669 13f79535-47bb-0310-9956-ffa450edef68
2019-11-11 23:06:29 +00:00
Andreas Beeker
34fc1a45fe
Bug 60656 - Emf image support in slideshows
...
- Use ImageRenderer instead of prerendered BufferedImage to achieve better rendering result
- Fix extraction of EMF embeddings
- Fix renderer state handling in HemfGraphics (but still not perfect)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869582 13f79535-47bb-0310-9956-ffa450edef68
2019-11-08 20:32:46 +00:00
Andreas Beeker
f7c28ad08f
#60656 - EMF image support in slideshows
...
- extract option for embedded element in PPTX2PNG
- minor GenericRecordJsonWriter fixes
- fix EMF+ world transformations
- fix initialization emf pictures, which were partly unbounded -> excessive memory consumption
- change EMF+ brushes to continueable record
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869272 13f79535-47bb-0310-9956-ffa450edef68
2019-11-01 17:18:13 +00:00
Andreas Beeker
52b4ecfa9b
#63745 - Fix line endings ... again
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869013 13f79535-47bb-0310-9956-ffa450edef68
2019-10-26 19:13:16 +00:00
Dominik Stadler
14812bee45
Adjust comments and add slightly more test-coverage
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868982 13f79535-47bb-0310-9956-ffa450edef68
2019-10-26 05:26:52 +00:00
Dominik Stadler
2dad9b7543
Adjust an error message slightly
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868980 13f79535-47bb-0310-9956-ffa450edef68
2019-10-26 05:26:44 +00:00
Dominik Stadler
e1237a4f5b
Fix some IDE warnings and update some JavaDoc
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868977 13f79535-47bb-0310-9956-ffa450edef68
2019-10-26 05:26:30 +00:00
Andreas Beeker
0783cdeb1f
Remove references to DatatypeConverter
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868953 13f79535-47bb-0310-9956-ffa450edef68
2019-10-25 20:00:52 +00:00
Andreas Beeker
6e32d853be
#63745 - Make GenericRecordJsonWriter Json-conformant
...
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868952 13f79535-47bb-0310-9956-ffa450edef68
2019-10-25 20:00:06 +00:00