We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1278d58 commit 74d5bafCopy full SHA for 74d5baf
1 file changed
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
@@ -615,8 +615,8 @@ public void setUseRuntimeException(boolean useRuntimeException) {
615
this.useRuntimeException = useRuntimeException;
616
}
617
618
- final private static Pattern JSON_MIME_PATTERN = Pattern.compile("(?i)application\\/json(;.*)?");
619
- final private static Pattern JSON_VENDOR_MIME_PATTERN = Pattern.compile("(?i)application\\/vnd.(.*)+json(;.*)?");
+ private static final Pattern JSON_MIME_PATTERN = Pattern.compile("(?i)application/json(;.*)?");
+ private static final Pattern JSON_VENDOR_MIME_PATTERN = Pattern.compile("(?i)application/vnd\\..*\\+json(;.*)?");
620
621
/**
622
* Check if the given MIME is a JSON MIME.
0 commit comments