Removes the unnecessary `synchronized` introduced in #62433 and adjusts the others to return `this` not `null` as required by the parent method's Javadocs.
@@ -41,6 +41,6 @@ public class NotMasterException extends ElasticsearchException {
@Override
public Throwable fillInStackTrace() {
- return null;
+ return this;
}
@@ -59,7 +59,7 @@ public class VersionConflictEngineException extends EngineException {
- public synchronized Throwable fillInStackTrace() {
+ public Throwable fillInStackTrace() {
// This is on the hot path for updates; stack traces are expensive to compute and not very useful for VCEEs, so don't fill it in.
return this;
@@ -38,6 +38,6 @@ public class NodeDisconnectedException extends ConnectTransportException {
@@ -31,7 +31,7 @@ public class NotSerializableTransportException extends TransportException {
@@ -34,7 +34,4 @@ public class ReceiveTimeoutTransportException extends ActionTransportException {
super(in);
-// @Override public Throwable fillInStackTrace() {
-// return fillStack();
-// }
@@ -48,6 +48,6 @@ public class RemoteTransportException extends ActionTransportException implement
// no need for stack trace here, we always have cause
@@ -38,6 +38,6 @@ public class ResponseHandlerFailureTransportException extends TransportException
} // why is this?