Jacobo Aragunde Pérez
775da74dee
Fix NPE in XWPFParagraph.getCTSpacing(). ( #950 )
...
We recently changed the getters so they don't create the PPr object if
it doesn't exist, but we missed adding one null check for the new
situation.
Add a test to exercise all the getters in a case where there isn't a PPr
object.
2025-11-24 20:44:02 +01:00
PJ Fanning
fa95a3e522
reduce use of setCellType ( #943 )
2025-11-19 14:20:56 +01:00
PJ Fanning
540f0e5617
remove deprecated hasOOXMLHeader method ( #941 )
2025-11-19 13:58:41 +01:00
dependabot[bot]
7a36dfe031
Bump org.xmlunit:xmlunit-core from 2.10.4 to 2.11.0 ( #934 )
...
Bumps [org.xmlunit:xmlunit-core](https://github.com/xmlunit/xmlunit ) from 2.10.4 to 2.11.0.
- [Release notes](https://github.com/xmlunit/xmlunit/releases )
- [Changelog](https://github.com/xmlunit/xmlunit/blob/main/RELEASE_NOTES.md )
- [Commits](https://github.com/xmlunit/xmlunit/compare/v2.10.4...v2.11.0 )
---
updated-dependencies:
- dependency-name: org.xmlunit:xmlunit-core
dependency-version: 2.11.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-17 15:25:32 +01:00
Dominik Stadler
59e595b844
Remove some of the deprecated methods with @Removal("6.0.0")
...
We announced their removal for 6.0.0, so
we can remove them now as we plan a 6.0.0 release
next.
Some were not yet removed as they have still internal
usage or seem to need more work to finally remove.
2025-11-16 22:34:18 +01:00
Dominik Stadler
c6a621edc6
Remove deprecated methods with @Removal("5...")
...
We announced their removal already for 5.0.0 or 5.3.0, so
we can safely remove them now as we plan a 6.0.0 release
next.
Cell.setCellType() needs a closer look later as
it is not a simple deletion of code.
2025-11-16 22:34:18 +01:00
Dominik Stadler
73b904f16d
Remove workarounds for IBM JDK and JDK patchlevel 21.0.1
...
IBM JDK 11 seems to be fixed and we do not expect to run
tests with JDK 21.0.1 anymore
2025-11-16 14:18:06 +01:00
Dominik Stadler
d486e50822
Use OpenRewrite to update code to make use of Java 11
2025-11-16 14:18:06 +01:00
PJ Fanning
1604c410d1
java 11
2025-11-15 12:33:21 +01:00
PJ Fanning
1d4f5d34bd
5.5.0 release notes
2025-11-15 11:54:49 +01:00
PJ Fanning
16ecbc7d48
build issues
2025-11-15 11:34:52 +01:00
PJ Fanning
323b5c8c6b
start move to require java 11 min
2025-11-15 11:26:19 +01:00
PJ Fanning
95b46731b9
Remove comment about unknown built-in style
...
Removed comment about unknown built-in style from getTableStyle method.
2025-11-03 07:41:22 +01:00
Dominik Stadler
a371cba0be
Apply IDE suggestions
2025-11-03 07:31:41 +01:00
Dominik Stadler
25a2dd9227
Adjust parsing XSSFBuiltinTableStyle
...
In case of invalid enum-value keep the fallback-handling
as before as otherwise some existing documents fail to parse
2025-11-03 07:26:03 +01:00
PJ Fanning
0dc32a8596
cache CellStyle Properties to improve performance ( #926 )
...
* cache CellStyle Properties to improve performance
* add tests
2025-10-29 19:47:21 +00:00
AdRiley
63c0bf9368
New api for reading xlsb ( #920 )
...
* Add new API
* Add testBasicXSSFBSheetContentsHandler
* Add testCommentsXSSFBSheetContentsHandler
* Add testDateXSSFBSheetContentsHandler
* Fix comment
* Code Review feedback
* Code review feedback
* Fix backwards compatibility
* rename helper method
* Organise imports
* Add @since POI 5.5.0
2025-10-21 14:19:16 +01:00
Dominik Stadler
dc2cfe0bfc
Apply IDE suggestions
2025-10-06 07:40:53 +02:00
Jacobo Aragunde Pérez
79d1630374
Prevent NullPointerException in XWPFTable.getWidthType(). ( #912 )
...
According to the spec in section "17.4.63 tblW (Preferred Table Width)",
the element tblW is not compulsory and "If this element is omitted, then
the cell width shall be of type auto."
We modify the getter to follow this behavior, preventing a NPE.
It implies a change of behavior in the situation when there is no tblPr,
in that case it used to return NIL, but notice that this behavior was
introduced in commit d4fc5cd6c08338a4132a6348ee1b1b077f9527b8 and has
never been part of a release.
2025-10-01 14:17:00 +01:00
Jacobo Aragunde Pérez
7a124135de
Make getters public for XML beans in XWPFDefault*Style. ( #910 )
...
The classes XWPFDefaultRunStyle and XWPFDefaultParagraphStyle only
expose a subset of their possibles attributes. To let users access all
the underlying data, we change the visibility of the XML bean getters
to public.
2025-09-26 09:13:14 +01:00
dependabot[bot]
f26ea2b777
Bump com.google.guava:guava from 33.4.8-jre to 33.5.0-jre ( #907 )
...
Bumps [com.google.guava:guava](https://github.com/google/guava ) from 33.4.8-jre to 33.5.0-jre.
- [Release notes](https://github.com/google/guava/releases )
- [Commits](https://github.com/google/guava/commits )
---
updated-dependencies:
- dependency-name: com.google.guava:guava
dependency-version: 33.5.0-jre
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 17:21:13 +01:00
dependabot[bot]
e4a2cd1233
Bump org.xmlunit:xmlunit-core from 2.10.3 to 2.10.4 ( #901 )
...
Bumps [org.xmlunit:xmlunit-core](https://github.com/xmlunit/xmlunit ) from 2.10.3 to 2.10.4.
- [Release notes](https://github.com/xmlunit/xmlunit/releases )
- [Changelog](https://github.com/xmlunit/xmlunit/blob/main/RELEASE_NOTES.md )
- [Commits](https://github.com/xmlunit/xmlunit/compare/v2.10.3...v2.10.4 )
---
updated-dependencies:
- dependency-name: org.xmlunit:xmlunit-core
dependency-version: 2.10.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-15 18:34:09 +01:00
PJ Fanning
49fd564023
log4j bom ( #897 )
2025-09-11 10:52:01 +01:00
PJ Fanning
2b7f7074a0
refactor getTableStyle due to perf issues ( #896 )
2025-09-09 23:12:08 +01:00
PJ Fanning
d0e6830e44
issue when formatting number when divisor is needed ( #895 )
...
* reproduce issue 69812
* workaround for issue
2025-09-09 22:27:48 +01:00
PJ Fanning
b0a4e1042a
Update TestXSSFParser.java
2025-08-28 15:41:20 +01:00
PJ Fanning
6647bc8c8b
Update TestXSSFParser.java
2025-08-28 14:43:15 +01:00
PJ Fanning
4493f3a5d6
Update TestXSSFParser.java
2025-08-28 14:13:16 +01:00
PJ Fanning
dda424920a
Update TestXSSFParser.java
2025-08-28 13:50:21 +01:00
PJ Fanning
c5f3ab9d50
Update TestXSSFParser.java
2025-08-28 13:48:05 +01:00
PJ Fanning
7a80eb6920
Update TestXSSFParser.java
2025-08-28 13:23:53 +01:00
PJ Fanning
172e73a10b
Update TestXSSFParser.java
2025-08-28 13:15:10 +01:00
PJ Fanning
9f9ff14e56
add test
2025-08-28 13:00:54 +01:00
PJ Fanning
54f1f5deac
add new XSSFParser ( #870 )
...
* add new XSSFParser
* Update build.gradle
* extra parse methods
2025-08-20 13:13:23 +01:00
PJ Fanning
ac53afe307
Update XSSFPictureData.java
2025-08-15 10:44:54 +01:00
PJ Fanning
bdb467e84e
Update TestXSSFWorkbook.java
2025-08-14 12:44:21 +01:00
PJ Fanning
65747422b3
Update TestXSSFWorkbook.java
2025-08-14 12:10:49 +01:00
PJ Fanning
c0e6a9bed0
close package parts when closing OPCPackage ( #880 )
...
* close package parts when closing OPCPackage
* Update ZipPackagePart.java
2025-08-14 10:58:46 +01:00
PJ Fanning
e98a5991e7
Update TestXSSFWorkbook.java
2025-08-14 10:56:27 +01:00
PJ Fanning
314bda66a4
Update TestXSSFWorkbook.java
2025-08-14 09:44:08 +01:00
Dominik Stadler
085c9ddb19
Try to fix some JavaDoc references
2025-08-10 17:00:11 +02:00
Dominik Stadler
92565ea07c
Adjust test with deeply nested file for JDK 25
...
It seems JDK 25 introduces more checks when parsing XML
Also apply some IDE suggestions and fix deprecation warnings
2025-08-10 17:00:11 +02:00
PJ Fanning
86e80a9164
change xml options ( #875 )
2025-08-06 18:29:04 +01:00
PJ Fanning
9d37011683
workaround stray whitespace in sst index ( #874 )
...
* tolerate whitespace in ints
* try to workaround stray whitespace in sst index
* Update TestAllFiles.java
2025-08-05 12:00:54 +01:00
PJ Fanning
224201e1a2
check node depth (xslf) ( #872 )
2025-08-03 01:13:59 +01:00
PJ Fanning
e070250352
Update XSSFReader.java
2025-08-01 21:33:59 +01:00
PJ Fanning
4a9c9271fe
check node depth ( #871 )
2025-08-01 21:20:17 +01:00
PJ Fanning
b50ce609ca
check xwpf node depth ( #869 )
...
* check xwpf node depth
* Update TestAllFiles.java
* Update TestAllFiles.java
2025-08-01 20:28:05 +01:00
PJ Fanning
fa573c72da
add xwpf test
2025-07-30 21:40:21 +01:00
PJ Fanning
bcc7912c8d
add message to NPE
2025-07-26 10:25:03 +01:00