Skip to content

Commit b3bf471

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a2d3d6a commit b3bf471

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/src/main/java/org/elasticsearch/ElasticsearchException.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public ElasticsearchException(String msg, Throwable cause, Object... args) {
158158
@SuppressWarnings("this-escape")
159159
public ElasticsearchException(StreamInput in) throws IOException {
160160
super(in.readOptionalString(), in.readException());
161-
readStackTrace(this, in);
161+
readStackTrace(this, in);
162162
headers.putAll(in.readMapOfLists(StreamInput::readString));
163163
metadata.putAll(in.readMapOfLists(StreamInput::readString));
164164
}
@@ -177,8 +177,7 @@ public void addMetadata(String key, String... values) {
177177
*/
178178
public void addMetadata(String key, List<String> values) {
179179
// we need to enforce this otherwise bw comp doesn't work properly, as "es." was the previous criteria to split headers in two sets
180-
if (key.startsWith("es.") == false)
181-
{
180+
if (key.startsWith("es.") == false) {
182181
throw new IllegalArgumentException("exception metadata must start with [es.], found [" + key + "] instead");
183182
}
184183
this.metadata.put(key, values);

0 commit comments

Comments
 (0)