Skip to content

Commit

Permalink
Bump com.palantir.baseline:gradle-baseline-java from 4.188.0 to 4.189…
Browse files Browse the repository at this point in the history
….0 (#1666)
  • Loading branch information
dependabot[bot] authored Mar 8, 2023
1 parent db470cf commit 3539398
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
classpath 'com.palantir.baseline:gradle-baseline-java:4.189.0'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:2.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private InstrumentedStreams() {}
* @return instrumented input stream
*/
public static InputStream input(
InputStream in, TaggedMetricRegistry metrics, @Safe @CompileTimeConstant String type) {
InputStream in, TaggedMetricRegistry metrics, @Safe @CompileTimeConstant final String type) {
return new InstrumentedInputStream(in, IoStreamMetrics.of(metrics).read(type));
}

Expand All @@ -46,7 +46,7 @@ public static InputStream input(
* @return instrumented output stream
*/
public static OutputStream output(
OutputStream out, TaggedMetricRegistry metrics, @Safe @CompileTimeConstant String type) {
OutputStream out, TaggedMetricRegistry metrics, @Safe @CompileTimeConstant final String type) {
return new InstrumentedOutputStream(out, IoStreamMetrics.of(metrics).write(type));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

abstract class InvocationEventProxy implements InvocationHandler {
Expand Down Expand Up @@ -81,7 +82,7 @@ public final Object invoke(Object proxy, Method method, @Nullable Object[] nulla
Object result = method.invoke(getDelegate(), arguments);
return handleOnSuccess(context, result);
} catch (InvocationTargetException ite) {
throw handleOnFailure(context, ite.getCause());
throw handleOnFailure(context, Objects.requireNonNullElse(ite.getCause(), ite));
} catch (IllegalAccessException | RuntimeException | Error t) {
throw handleOnFailure(context, t);
}
Expand Down

0 comments on commit 3539398

Please sign in to comment.