Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6C609200CD3 for ; Fri, 14 Jul 2017 05:47:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6AD8316D318; Fri, 14 Jul 2017 03:47:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B184A16D315 for ; Fri, 14 Jul 2017 05:47:42 +0200 (CEST) Received: (qmail 77635 invoked by uid 500); 14 Jul 2017 03:47:41 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 77626 invoked by uid 99); 14 Jul 2017 03:47:41 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jul 2017 03:47:41 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 635673A0F90 for ; Fri, 14 Jul 2017 03:47:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1801904 - /poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java Date: Fri, 14 Jul 2017 03:47:38 -0000 To: commits@poi.apache.org From: onealj@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170714034740.635673A0F90@svn01-us-west.apache.org> archived-at: Fri, 14 Jul 2017 03:47:43 -0000 Author: onealj Date: Fri Jul 14 03:47:38 2017 New Revision: 1801904 URL: http://svn.apache.org/viewvc?rev=1801904&view=rev Log: bug 61296: deduplicate ooxml schema constants Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java?rev=1801904&r1=1801903&r2=1801904&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRelation.java Fri Jul 14 03:47:38 2017 @@ -22,6 +22,7 @@ import java.util.Map; import org.apache.poi.POIXMLDocumentPart; import org.apache.poi.POIXMLRelation; +import org.apache.poi.openxml4j.opc.PackageRelationshipTypes; /** * @author Yegor Kozlov @@ -35,25 +36,25 @@ public final class XWPFRelation extends public static final XWPFRelation DOCUMENT = new XWPFRelation( "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml", - "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", + PackageRelationshipTypes.CORE_DOCUMENT, "/word/document.xml", null ); public static final XWPFRelation TEMPLATE = new XWPFRelation( "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml", - "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", + PackageRelationshipTypes.CORE_DOCUMENT, "/word/document.xml", null ); public static final XWPFRelation MACRO_DOCUMENT = new XWPFRelation( "application/vnd.ms-word.document.macroEnabled.main+xml", - "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", + PackageRelationshipTypes.CORE_DOCUMENT, "/word/document.xml", null ); public static final XWPFRelation MACRO_TEMPLATE_DOCUMENT = new XWPFRelation( "application/vnd.ms-word.template.macroEnabledTemplate.main+xml", - "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", + PackageRelationshipTypes.CORE_DOCUMENT, "/word/document.xml", null ); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org For additional commands, e-mail: commits-help@poi.apache.org