Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excavator: Upgrades Baseline to the latest version #437

Merged
merged 1 commit into from
Sep 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.netflix.nebula:gradle-info-plugin:5.1.0'
classpath 'com.netflix.nebula:nebula-publishing-plugin:13.6.1'
classpath 'com.palantir.baseline:gradle-baseline-java:2.8.1'
classpath 'com.palantir.baseline:gradle-baseline-java:2.9.1'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:1.12.4'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.2'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ public enum InstrumentationFilters implements InstrumentationFilter {
INSTRUMENT_ALL {
@Override
public boolean shouldInstrument(
@Nonnull Object unusedInstance,
@Nonnull Method unusedMethod,
@Nonnull Object[] unusedArgs) {
@Nonnull Object _instance,
@Nonnull Method _method,
@Nonnull Object[] _args) {
return true;
}
},

INSTRUMENT_NONE {
@Override
public boolean shouldInstrument(
@Nonnull Object unusedInstance,
@Nonnull Method unusedMethod,
@Nonnull Object[] unusedArgs) {
@Nonnull Object _instance,
@Nonnull Method _method,
@Nonnull Object[] _args) {
return false;
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public InvocationContext preInvocation(@Nonnull Object instance, @Nonnull Method
}

@Override
public void onSuccess(@Nullable InvocationContext unusedContext, @Nullable Object unusedResult) {
public void onSuccess(@Nullable InvocationContext _context, @Nullable Object _result) {
// no-op
}

@Override
public void onFailure(@Nullable InvocationContext unusedContext, @Nonnull Throwable unusedCause) {
public void onFailure(@Nullable InvocationContext _context, @Nonnull Throwable _cause) {
// no-op
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ public InvocationContext preInvocation(
}

@Override
public void onSuccess(@Nullable InvocationContext unusedContext, @Nullable Object unusedResult) {}
public void onSuccess(@Nullable InvocationContext _context, @Nullable Object _result) {}

@Override
public void onFailure(@Nullable InvocationContext unusedContext, @Nonnull Throwable unusedCause) {}
public void onFailure(@Nullable InvocationContext _context, @Nonnull Throwable _cause) {}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public String echo(String input) {
}
}

public static void main(String[] unusedArgs) throws Exception {
public static void main(String[] _args) throws Exception {
Options options = new OptionsBuilder()
.include(ProxyBenchmark.class.getSimpleName())
.warmupTime(TimeValue.seconds(1))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public final class JitCompilationTest {
TestLogs.logTo("/dev/null");
}

public static void main(String[] unusedArgs) {
public static void main(String[] _args) {
JitCompilationTest test = new JitCompilationTest();
test.jitAllSuccess();
test.jitWithSomeExceptions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public void testInstrumentPreInvocationThrows() throws Throwable {
InvocationEventHandler<InvocationContext> testHandler = new SimpleHandler() {
@Override
public InvocationContext preInvocation(
@Nonnull Object unusedInstance,
@Nonnull Method unusedMethod,
@Nonnull Object[] unusedArgs) {
@Nonnull Object _instance,
@Nonnull Method _method,
@Nonnull Object[] _args) {
throw new IllegalStateException("expected");
}
};
Expand All @@ -112,7 +112,7 @@ public InvocationContext preInvocation(
public void testInstrumentOnSuccessThrows() throws Throwable {
InvocationEventHandler<InvocationContext> testHandler = new SimpleHandler() {
@Override
public void onSuccess(@Nullable InvocationContext unusedContext, @Nullable Object unusedResult) {
public void onSuccess(@Nullable InvocationContext _context, @Nullable Object _result) {
throw new IllegalStateException("expected");
}
};
Expand All @@ -132,12 +132,12 @@ public void onSuccess(@Nullable InvocationContext unusedContext, @Nullable Objec
public void testInstrumentOnFailureThrows() throws Throwable {
InvocationEventHandler<InvocationContext> testHandler = new SimpleHandler() {
@Override
public void onSuccess(@Nullable InvocationContext unusedContext, @Nullable Object unusedResult) {
public void onSuccess(@Nullable InvocationContext _context, @Nullable Object _result) {
throw new IllegalStateException("expected");
}

@Override
public void onFailure(@Nullable InvocationContext unusedContext, @Nonnull Throwable unusedCause) {
public void onFailure(@Nullable InvocationContext _context, @Nonnull Throwable _cause) {
throw new IllegalStateException("expected");
}
};
Expand Down Expand Up @@ -331,10 +331,10 @@ public InvocationContext preInvocation(
}

@Override
public void onSuccess(@Nullable InvocationContext unusedContext, @Nullable Object unusedResult) {}
public void onSuccess(@Nullable InvocationContext _context, @Nullable Object _result) {}

@Override
public void onFailure(@Nullable InvocationContext unusedContext, @Nonnull Throwable unusedCause) {}
public void onFailure(@Nullable InvocationContext _context, @Nonnull Throwable _cause) {}
}

private static class TestProxy extends InvocationEventProxy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public InvocationContext preInvocation(@Nonnull Object instance, @Nonnull Method
}

@Override
public void onSuccess(@Nullable InvocationContext context, @Nullable Object unusedResult) {
public void onSuccess(@Nullable InvocationContext context, @Nullable Object _result) {
debugIfNullContext(context);
if (context != null) {
long nanos = updateTimer(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public final InvocationContext preInvocation(
}

@Override
public final void onSuccess(@Nullable InvocationContext context, @Nullable Object unusedResult) {
public final void onSuccess(@Nullable InvocationContext context, @Nullable Object _result) {
debugIfNullContext(context);
if (context != null) {
long nanos = System.nanoTime() - context.getStartTimeNanos();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public final InvocationContext preInvocation(
}

@Override
public final void onSuccess(@Nullable InvocationContext context, @Nullable Object unusedResult) {
public final void onSuccess(@Nullable InvocationContext context, @Nullable Object _result) {
logInvocation(context);
}

@Override
public final void onFailure(@Nullable InvocationContext context, @Nonnull Throwable unusedCause) {
public final void onFailure(@Nullable InvocationContext context, @Nonnull Throwable _cause) {
logInvocation(context);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public String test() {
}

@Override
public void multiArgumentMethod(String unusedString, int unusedCount, Collection<String> unusedCollection) {
public void multiArgumentMethod(String _string, int _count, Collection<String> _collection) {
test();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ public ThrowingInvocationEventHandler(boolean isEnabled) {

@Override
public com.palantir.tritium.event.InvocationContext preInvocation(
@Nonnull Object unusedInstance,
@Nonnull Method unusedMethod,
@Nonnull Object[] unusedArgs) {
@Nonnull Object _instance,
@Nonnull Method _method,
@Nonnull Object[] _args) {
throw new SafeIllegalStateException("preInvocation always throws");
}

@Override
public void onSuccess(@Nullable InvocationContext unusedContext, @Nullable Object unusedResult) {
public void onSuccess(@Nullable InvocationContext _context, @Nullable Object _result) {
throw new SafeIllegalStateException("onSuccess always throws");
}

@Override
public void onFailure(@Nullable InvocationContext unusedContext, @Nonnull Throwable unusedCause) {
public void onFailure(@Nullable InvocationContext _context, @Nonnull Throwable _cause) {
throw new SafeIllegalStateException("onFailure always throws");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ private String getOperationName(Method method) {
}

@Override
public void onSuccess(@Nullable InvocationContext context, @Nullable Object unusedResult) {
public void onSuccess(@Nullable InvocationContext context, @Nullable Object _result) {
debugIfNullContext(context);
if (context != null) {
tracer.completeSpan();
}
}

@Override
public void onFailure(@Nullable InvocationContext context, @Nonnull Throwable unusedCause) {
public void onFailure(@Nullable InvocationContext context, @Nonnull Throwable _cause) {
debugIfNullContext(context);
if (context != null) {
tracer.completeSpan();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ private String getOperationName(Method method) {
}

@Override
public void onSuccess(@Nullable InvocationContext context, @Nullable Object unusedResult) {
public void onSuccess(@Nullable InvocationContext context, @Nullable Object _result) {
complete(context);
}

@Override
public void onFailure(@Nullable InvocationContext context, @Nonnull Throwable unusedCause) {
public void onFailure(@Nullable InvocationContext context, @Nonnull Throwable _cause) {
complete(context);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public void createInvalid() throws Exception {
public static final class MockTracer {
private MockTracer() {}

public static void start(String unused) {}
public static void start(String _value) {}

public static void stop() {}

public static void badStart(Integer unused) {}
public static void badStart(Integer _value) {}

public static void badStop(String unused) {}
public static void badStop(String _value) {}
}

}