summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2016-10-11 16:18:27 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2016-10-12 09:43:09 -0400
commitbaabf9f520f336b2d3107e47ff87e46b5253dbd0 (patch)
tree267ade71255f9faf7a8c269cd1f34025d23aa2da /org.eclipse.jgit.lfs
parentcc0d58f9a0e3d3dc5c1eb49f33e3a061f2f3caf5 (diff)
downloadjgit-baabf9f520f336b2d3107e47ff87e46b5253dbd0.tar.gz
jgit-baabf9f520f336b2d3107e47ff87e46b5253dbd0.zip
Content type constants used in lfs should be final
Change-Id: Ia56a9f58e336c25255a81d9402e198e5ce5da442 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.lfs')
-rw-r--r--org.eclipse.jgit.lfs/.settings/.api_filters17
-rw-r--r--org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/Constants.java4
2 files changed, 19 insertions, 2 deletions
diff --git a/org.eclipse.jgit.lfs/.settings/.api_filters b/org.eclipse.jgit.lfs/.settings/.api_filters
new file mode 100644
index 0000000000..be675b1ee1
--- /dev/null
+++ b/org.eclipse.jgit.lfs/.settings/.api_filters
@@ -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>
diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/Constants.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/Constants.java
index 20e87ae0b9..a88057afce 100644
--- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/Constants.java
+++ b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/Constants.java
@@ -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";
}