Polish
See gh-15695
This commit is contained in:
committed by
Stephane Nicoll
parent
b22561877d
commit
af3ed9ff9f
@@ -38,7 +38,7 @@ public final class EndpointId {
|
||||
|
||||
private static final Log logger = LogFactory.getLog(EndpointId.class);
|
||||
|
||||
private static Set<String> loggedWarnings = new HashSet<>();
|
||||
private static final Set<String> loggedWarnings = new HashSet<>();
|
||||
|
||||
private static final Pattern VALID_PATTERN = Pattern.compile("[a-zA-Z0-9\\.\\-]+");
|
||||
|
||||
|
||||
@@ -138,8 +138,8 @@ public class ElasticsearchJestHealthIndicatorTests {
|
||||
status);
|
||||
}
|
||||
else {
|
||||
json = "{\n" + " \"error\": \"Server Error\",\n" + " \"status\": "
|
||||
+ responseCode + "\n" + "}";
|
||||
json = "{\n" + " \"error\": \"Server Error\",\n" + " \"status\": \""
|
||||
+ status + "\"\n" + "}";
|
||||
}
|
||||
searchResult.setJsonString(json);
|
||||
searchResult.setJsonObject(new JsonParser().parse(json).getAsJsonObject());
|
||||
|
||||
Reference in New Issue
Block a user