From: Robert Varga Date: Tue, 7 Jul 2020 17:53:14 +0000 (+0200) Subject: Fix YangConstants.RFC6020_YIN_MEDIA_TYPE X-Git-Tag: v5.0.4~6 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=58c585425f8d3fc2cfddfd359545d02a5ab64923;p=yangtools.git Fix YangConstants.RFC6020_YIN_MEDIA_TYPE The definition and reference are wrong here, fix that up. JIRA: YANGTOOLS-1124 Change-Id: Ied4f0f1855329a536cdd0b73e38a69dcde72d377 Signed-off-by: Robert Varga (cherry picked from commit c22a8da40553df3302e02cad846c65ce013fc8e8) --- diff --git a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangConstants.java b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangConstants.java index 9daf1b4698..2445c2ae20 100644 --- a/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangConstants.java +++ b/yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangConstants.java @@ -16,18 +16,18 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public final class YangConstants { /** - * YANG File Extension, as defined in https://tools.ietf.org/html/rfc6020#section-14.1. + * YANG File Extension, as defined in RFC6020. */ public static final String RFC6020_YANG_FILE_EXTENSION = ".yang"; /** - * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1. + * YANG Media Type, as defined in RFC6020. */ public static final String RFC6020_YANG_MAC_FILE_TYPE = "TEXT"; /** - * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1. + * YANG Media Type, as defined in hRFC6020. */ public static final String RFC6020_YANG_MEDIA_TYPE = "application/yang"; @@ -47,19 +47,19 @@ public final class YangConstants { public static final QNameModule RFC6020_YANG_MODULE = QNameModule.create(RFC6020_YANG_NAMESPACE).intern(); /** - * YIN File Extension, as defined in https://tools.ietf.org/html/rfc6020#section-14.2. + * YIN File Extension, as defined in RFC6020. */ public static final String RFC6020_YIN_FILE_EXTENSION = ".yin"; /** - * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1. + * YANG Media Type, as defined in RFC6020. */ public static final String RFC6020_MAC_FILE_TYPE = "TEXT"; /** - * YANG Media Type, as defined in https://tools.ietf.org/html/rfc6020#section-14.1. + * YANG Media Type, as defined in RFC6020. */ - public static final String RFC6020_YIN_MEDIA_TYPE = "application/xml+yin"; + public static final String RFC6020_YIN_MEDIA_TYPE = "application/yin+xml"; /** * YIN namespace, as defined in https://tools.ietf.org/html/rfc6020#section-14, in String format.