Content type constants used in lfs should be final

Change-Id: Ia56a9f58e336c25255a81d9402e198e5ce5da442
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2016-10-11 16:18:27 +02:00
parent cc0d58f9a0
commit baabf9f520
2 changed files with 19 additions and 2 deletions

View File

@ -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>

View File

@ -115,11 +115,11 @@ public static MessageDigest newMessageDigest() {
* 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";
}