From 488c54fff0a012d819ab9eca09429e1fd02fe1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20K=C3=B6rber?= Date: Sat, 4 Nov 2017 13:05:20 +0100 Subject: [PATCH] Sonar fixes --- acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java | 4 +++- .../src/main/java/org/shredzone/acme4j/toolbox/AcmeUtils.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java b/acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java index b9bbe8b9..fcef79d2 100644 --- a/acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java +++ b/acme4j-client/src/main/java/org/shredzone/acme4j/Problem.java @@ -53,7 +53,9 @@ public class Problem implements Serializable { } /** - * Returns the problem as {@link JSON} object, to access other fields. + * Returns the problem object, to access custom fields. + * + * @return Problem, as {@link JSON} object */ public JSON asJSON() { return problemJson; diff --git a/acme4j-client/src/main/java/org/shredzone/acme4j/toolbox/AcmeUtils.java b/acme4j-client/src/main/java/org/shredzone/acme4j/toolbox/AcmeUtils.java index ee8af251..22368921 100644 --- a/acme4j-client/src/main/java/org/shredzone/acme4j/toolbox/AcmeUtils.java +++ b/acme4j-client/src/main/java/org/shredzone/acme4j/toolbox/AcmeUtils.java @@ -51,7 +51,7 @@ public final class AcmeUtils { private static final Pattern TZ_PATTERN = Pattern.compile( "([+-])(\\d{2}):?(\\d{2})$"); - private final static Pattern CONTENT_TYPE_PATTERN = Pattern.compile( + private static final Pattern CONTENT_TYPE_PATTERN = Pattern.compile( "([^;]+)(?:;.*?charset=(\"?)([a-z0-9_-]+)(\\2))?.*", Pattern.CASE_INSENSITIVE); private AcmeUtils() {