diff options
author | PJ Fanning <fanningpj@apache.org> | 2024-04-19 09:38:53 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2024-04-19 09:38:53 +0000 |
commit | 5955dd75de90b176b2871f6fb4a792b523949961 (patch) | |
tree | 61b360825bc06fbf6d28dcc20c1d750a584cc30a /poi-ooxml/src/main/java | |
parent | eebb3717e04341aa041be14f8322ac4dd835c286 (diff) | |
download | poi-5955dd75de90b176b2871f6fb4a792b523949961.tar.gz poi-5955dd75de90b176b2871f6fb4a792b523949961.zip |
fix compile issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917135 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src/main/java')
-rw-r--r-- | poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java b/poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java index c7c920f4eb..b80309be9f 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java +++ b/poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java @@ -641,7 +641,7 @@ public class POIXMLDocumentPart { // scan breadth-first, so parent-relations are hopefully the shallowest element for (PackageRelationship rel : rels) { - if (Objects.equals(rel.getRelationshipType(), HyperlinkRelationship.HYPERLINK_REL_TYPE)) { + if (Objects.equals(rel.getRelationshipType(), PackageRelationshipTypes.HYPERLINK_PART)) { referenceRelationships.put(rel.getId(), new HyperlinkRelationship(this, rel.getTargetURI(), rel.getTargetMode() == TargetMode.EXTERNAL, rel.getId())); } else { if (rel.getTargetMode() == TargetMode.INTERNAL) { @@ -789,7 +789,7 @@ public class POIXMLDocumentPart { public HyperlinkRelationship createHyperlink(URI uri, boolean isExternal, String relId) { PackageRelationship pr = packagePart.addRelationship(uri, isExternal ? TargetMode.EXTERNAL : TargetMode.INTERNAL, - HyperlinkRelationship.HYPERLINK_REL_TYPE, relId); + PackageRelationshipTypes.HYPERLINK_PART, relId); HyperlinkRelationship hyperlink = new HyperlinkRelationship(this, uri, isExternal, relId); referenceRelationships.put(relId, hyperlink); return hyperlink; |