diff --git a/buildSrc/src/main/resources/eclipse.settings/org.eclipse.jdt.ui.prefs b/buildSrc/src/main/resources/eclipse.settings/org.eclipse.jdt.ui.prefs
index a42667f8698..391a8715868 100644
--- a/buildSrc/src/main/resources/eclipse.settings/org.eclipse.jdt.ui.prefs
+++ b/buildSrc/src/main/resources/eclipse.settings/org.eclipse.jdt.ui.prefs
@@ -3,4 +3,4 @@ formatter_settings_version=12
# Intellij IDEA import order
org.eclipse.jdt.ui.importorder=;com;org;java;javax;\#;
# License header
-org.eclipse.jdt.ui.text.custom_code_templates=/**\n *\n *//**\n *\n *//**\n * ${tags}\n *//**\n *\n *//**\n *\n *//**\n *\n *//**\n * ${tags}\n *//*\n *\n *//**\n * ${tags}\n * ${see_to_target}\n */${filecomment}\n/*\n * Licensed to Elasticsearch under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n${package_declaration}\n\n${typecomment}\n${type_declaration}\n\n\n\nthrow new RuntimeException();${body_statement}${body_statement}return ${field};${field} \= ${param};
\ No newline at end of file
+org.eclipse.jdt.ui.text.custom_code_templates=/**\n *\n *//**\n *\n *//**\n * ${tags}\n *//**\n *\n *//**\n *\n *//**\n *\n *//**\n * ${tags}\n *//*\n *\n *//**\n * ${tags}\n * ${see_to_target}\n */${filecomment}\n/*\n * Licensed to Elasticsearch under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n${package_declaration}\n\n${typecomment}\n${type_declaration}\n\n\n\nthrow new RuntimeException(${exception_var});${body_statement}${body_statement}return ${field};${field} \= ${param};
diff --git a/core/src/main/java/org/elasticsearch/index/mapper/object/ObjectMapper.java b/core/src/main/java/org/elasticsearch/index/mapper/object/ObjectMapper.java
index fc47fc561cb..9dc1a1d3dc7 100644
--- a/core/src/main/java/org/elasticsearch/index/mapper/object/ObjectMapper.java
+++ b/core/src/main/java/org/elasticsearch/index/mapper/object/ObjectMapper.java
@@ -355,7 +355,7 @@ public class ObjectMapper extends Mapper implements AllFieldMapper.IncludeInAll,
try {
clone = (ObjectMapper) super.clone();
} catch (CloneNotSupportedException e) {
- throw new RuntimeException();
+ throw new RuntimeException(e);
}
return clone;
}
diff --git a/core/src/test/java/org/elasticsearch/benchmark/scripts/score/script/NativeNaiveTFIDFScoreScript.java b/core/src/test/java/org/elasticsearch/benchmark/scripts/score/script/NativeNaiveTFIDFScoreScript.java
index 9d6a1cd2f07..e96b35df96a 100644
--- a/core/src/test/java/org/elasticsearch/benchmark/scripts/score/script/NativeNaiveTFIDFScoreScript.java
+++ b/core/src/test/java/org/elasticsearch/benchmark/scripts/score/script/NativeNaiveTFIDFScoreScript.java
@@ -70,7 +70,7 @@ public class NativeNaiveTFIDFScoreScript extends AbstractSearchScript {
score += indexFieldTerm.tf() * indexField.docCount() / indexFieldTerm.df();
}
} catch (IOException e) {
- throw new RuntimeException();
+ throw new RuntimeException(e);
}
}
return score;
diff --git a/core/src/test/java/org/elasticsearch/common/util/concurrent/CountDownTests.java b/core/src/test/java/org/elasticsearch/common/util/concurrent/CountDownTests.java
index db10addfe2e..1a32064fe7d 100644
--- a/core/src/test/java/org/elasticsearch/common/util/concurrent/CountDownTests.java
+++ b/core/src/test/java/org/elasticsearch/common/util/concurrent/CountDownTests.java
@@ -43,7 +43,7 @@ public class CountDownTests extends ESTestCase {
try {
latch.await();
} catch (InterruptedException e) {
- throw new RuntimeException();
+ throw new RuntimeException(e);
}
while (true) {
if(frequently()) {
diff --git a/core/src/test/java/org/elasticsearch/http/netty/NettyHttpServerPipeliningTests.java b/core/src/test/java/org/elasticsearch/http/netty/NettyHttpServerPipeliningTests.java
index 53c743d34d5..b675d29c9da 100644
--- a/core/src/test/java/org/elasticsearch/http/netty/NettyHttpServerPipeliningTests.java
+++ b/core/src/test/java/org/elasticsearch/http/netty/NettyHttpServerPipeliningTests.java
@@ -214,7 +214,7 @@ public class NettyHttpServerPipeliningTests extends ESTestCase {
Thread.sleep(timeout);
} catch (InterruptedException e1) {
Thread.currentThread().interrupt();
- throw new RuntimeException();
+ throw new RuntimeException(e1);
}
}
diff --git a/core/src/test/java/org/elasticsearch/transport/netty/KeyedLockTests.java b/core/src/test/java/org/elasticsearch/transport/netty/KeyedLockTests.java
index cbac0aded0e..9581dfff42f 100644
--- a/core/src/test/java/org/elasticsearch/transport/netty/KeyedLockTests.java
+++ b/core/src/test/java/org/elasticsearch/transport/netty/KeyedLockTests.java
@@ -112,7 +112,7 @@ public class KeyedLockTests extends ESTestCase {
try {
startLatch.await();
} catch (InterruptedException e) {
- throw new RuntimeException();
+ throw new RuntimeException(e);
}
int numRuns = scaledRandomIntBetween(5000, 50000);
for (int i = 0; i < numRuns; i++) {