]> source.dussan.org Git - jgit.git/commitdiff
Content type constants used in lfs should be final 52/82952/2
authorMatthias Sohn <matthias.sohn@sap.com>
Tue, 11 Oct 2016 14:18:27 +0000 (16:18 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 12 Oct 2016 13:43:09 +0000 (09:43 -0400)
Change-Id: Ia56a9f58e336c25255a81d9402e198e5ce5da442
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.lfs/.settings/.api_filters [new file with mode: 0644]
org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/Constants.java

diff --git a/org.eclipse.jgit.lfs/.settings/.api_filters b/org.eclipse.jgit.lfs/.settings/.api_filters
new file mode 100644 (file)
index 0000000..be675b1
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<component id="org.eclipse.jgit.lfs" version="2">
+    <resource path="src/org/eclipse/jgit/lfs/lib/Constants.java" type="org.eclipse.jgit.lfs.lib.Constants">
+        <filter id="388100214">
+            <message_arguments>
+                <message_argument value="org.eclipse.jgit.lfs.lib.Constants"/>
+                <message_argument value="CONTENT_TYPE_GIT_LFS_JSON"/>
+            </message_arguments>
+        </filter>
+        <filter id="388100214">
+            <message_arguments>
+                <message_argument value="org.eclipse.jgit.lfs.lib.Constants"/>
+                <message_argument value="HDR_APPLICATION_OCTET_STREAM"/>
+            </message_arguments>
+        </filter>
+    </resource>
+</component>
index 20e87ae0b9239ff1c8b4c1ca05f27fed9bc963c2..a88057afcee55e70543c7d63e22b016315337311 100644 (file)
@@ -115,11 +115,11 @@ public final class Constants {
         * Content type used by LFS REST API as defined in
         * {@link "https://github.com/github/git-lfs/blob/master/docs/api/v1/http-v1-batch.md"}
         */
-       public static String CONTENT_TYPE_GIT_LFS_JSON = "application/vnd.git-lfs+json";
+       public static final String CONTENT_TYPE_GIT_LFS_JSON = "application/vnd.git-lfs+json";
 
        /**
         * "arbitrary binary data" as defined in RFC 2046
         * {@link "https://www.ietf.org/rfc/rfc2046.txt"}
         */
-       public static String HDR_APPLICATION_OCTET_STREAM = "application/octet-stream";
+       public static final String HDR_APPLICATION_OCTET_STREAM = "application/octet-stream";
 }