Browse Source

Merge pull request #28369 from izeye

* pr/28369:
  Add Javadoc since for GraphQL constants

Closes gh-28369
pull/27953/head
Stephane Nicoll 3 years ago
parent
commit
46b0d7dc03
  1. 6
      spring-core/src/main/java/org/springframework/util/MimeTypeUtils.java
  2. 2
      spring-web/src/main/java/org/springframework/http/MediaType.java

6
spring-core/src/main/java/org/springframework/util/MimeTypeUtils.java

@ -67,18 +67,20 @@ public abstract class MimeTypeUtils { @@ -67,18 +67,20 @@ public abstract class MimeTypeUtils {
/**
* Public constant mime type for {@code application/graphql+json}.
* @since 5.3.19
* @see <a href="https://github.com/graphql/graphql-over-http">GraphQL over HTTP spec</a>
* */
*/
public static final MimeType APPLICATION_GRAPHQL;
/**
* A String equivalent of {@link MimeTypeUtils#APPLICATION_GRAPHQL}.
* @since 5.3.19
*/
public static final String APPLICATION_GRAPHQL_VALUE = "application/graphql+json";
/**
* Public constant mime type for {@code application/json}.
* */
*/
public static final MimeType APPLICATION_JSON;
/**

2
spring-web/src/main/java/org/springframework/http/MediaType.java

@ -97,12 +97,14 @@ public class MediaType extends MimeType implements Serializable { @@ -97,12 +97,14 @@ public class MediaType extends MimeType implements Serializable {
/**
* Public constant media type for {@code application/graphql+json}.
* @since 5.3.19
* @see <a href="https://github.com/graphql/graphql-over-http">GraphQL over HTTP spec</a>
*/
public static final MediaType APPLICATION_GRAPHQL;
/**
* A String equivalent of {@link MediaType#APPLICATION_GRAPHQL}.
* @since 5.3.19
*/
public static final String APPLICATION_GRAPHQL_VALUE = "application/graphql+json";

Loading…
Cancel
Save