Skip to content

Commit a2d3d6a

Browse files
authored
Testing auto-spotless
1 parent f900ae6 commit a2d3d6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 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,7 +177,8 @@ 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) {
180+
if (key.startsWith("es.") == false)
181+
{
181182
throw new IllegalArgumentException("exception metadata must start with [es.], found [" + key + "] instead");
182183
}
183184
this.metadata.put(key, values);

0 commit comments

Comments
 (0)