]> source.dussan.org Git - poi.git/commitdiff
fix compile issues
authorPJ Fanning <fanningpj@apache.org>
Fri, 19 Apr 2024 09:38:53 +0000 (09:38 +0000)
committerPJ Fanning <fanningpj@apache.org>
Fri, 19 Apr 2024 09:38:53 +0000 (09:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917135 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/ooxml/POIXMLDocumentPart.java

index c7c920f4eb8fecb6dbf4a6cfaebdf029721bb318..b80309be9f5033500d9c7bc0d6feca46bbb12b81 100644 (file)
@@ -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;