From 4caeb8c00de57e100817e0c91d5cda02d37664ee Mon Sep 17 00:00:00 2001 From: Michael Bolz Date: Fri, 14 Aug 2015 08:38:29 +0200 Subject: [PATCH] [OLINGO-659] Fixed minor analyse issues --- .../commons/api/http/HttpContentType.java | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/http/HttpContentType.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/http/HttpContentType.java index 87612eadb..12301f829 100644 --- a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/http/HttpContentType.java +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/http/HttpContentType.java @@ -25,33 +25,34 @@ package org.apache.olingo.commons.api.http; */ public interface HttpContentType { - public static final String APPLICATION_XML = "application/xml"; - public static final String APPLICATION_XML_UTF8 = APPLICATION_XML + ";charset=utf-8"; + String APPLICATION_XML = "application/xml"; + String CHARSET_UTF_8 = ";charset=utf-8"; + String APPLICATION_XML_UTF8 = APPLICATION_XML + CHARSET_UTF_8; - public static final String APPLICATION_ATOM_XML = "application/atom+xml"; - public static final String APPLICATION_ATOM_XML_UTF8 = APPLICATION_ATOM_XML + ";charset=utf-8"; - public static final String APPLICATION_ATOM_XML_ENTRY = APPLICATION_ATOM_XML + ";type=entry"; - public static final String APPLICATION_ATOM_XML_ENTRY_UTF8 = APPLICATION_ATOM_XML_ENTRY + ";charset=utf-8"; - public static final String APPLICATION_ATOM_XML_FEED = APPLICATION_ATOM_XML + ";type=feed"; - public static final String APPLICATION_ATOM_XML_FEED_UTF8 = APPLICATION_ATOM_XML_FEED + ";charset=utf-8"; - public static final String APPLICATION_ATOM_SVC = "application/atomsvc+xml"; - public static final String APPLICATION_ATOM_SVC_UTF8 = APPLICATION_ATOM_SVC + ";charset=utf-8"; + String APPLICATION_ATOM_XML = "application/atom+xml"; + String APPLICATION_ATOM_XML_UTF8 = APPLICATION_ATOM_XML + CHARSET_UTF_8; + String APPLICATION_ATOM_XML_ENTRY = APPLICATION_ATOM_XML + ";type=entry"; + String APPLICATION_ATOM_XML_ENTRY_UTF8 = APPLICATION_ATOM_XML_ENTRY + CHARSET_UTF_8; + String APPLICATION_ATOM_XML_FEED = APPLICATION_ATOM_XML + ";type=feed"; + String APPLICATION_ATOM_XML_FEED_UTF8 = APPLICATION_ATOM_XML_FEED + CHARSET_UTF_8; + String APPLICATION_ATOM_SVC = "application/atomsvc+xml"; + String APPLICATION_ATOM_SVC_UTF8 = APPLICATION_ATOM_SVC + CHARSET_UTF_8; - public static final String APPLICATION_JSON = "application/json"; - public static final String APPLICATION_JSON_VERBOSE = APPLICATION_JSON + ";odata=verbose"; - public static final String APPLICATION_JSON_UTF8 = APPLICATION_JSON + ";charset=utf-8"; - public static final String APPLICATION_JSON_UTF8_VERBOSE = APPLICATION_JSON_UTF8 + ";odata=verbose"; + String APPLICATION_JSON = "application/json"; + String APPLICATION_JSON_VERBOSE = APPLICATION_JSON + ";odata=verbose"; + String APPLICATION_JSON_UTF8 = APPLICATION_JSON + CHARSET_UTF_8; + String APPLICATION_JSON_UTF8_VERBOSE = APPLICATION_JSON_UTF8 + ";odata=verbose"; - public static final String TEXT_PLAIN = "text/plain"; - public static final String TEXT_PLAIN_UTF8 = TEXT_PLAIN + ";charset=utf-8"; + String TEXT_PLAIN = "text/plain"; + String TEXT_PLAIN_UTF8 = TEXT_PLAIN + CHARSET_UTF_8; - public static final String TEXT_HTML = "text/html"; + String TEXT_HTML = "text/html"; - public static final String APPLICATION_OCTET_STREAM = "application/octet-stream"; + String APPLICATION_OCTET_STREAM = "application/octet-stream"; - public static final String APPLICATION_HTTP = "application/http"; + String APPLICATION_HTTP = "application/http"; - public static final String MULTIPART_MIXED = "multipart/mixed"; + String MULTIPART_MIXED = "multipart/mixed"; - public static final String WILDCARD = "*/*"; + String WILDCARD = "*/*"; }