Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Jul 27, 2023
1 parent c2a0076 commit 428fc78
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ void traceInstructionsRemove() {
java(
"""
class FooBar{
public void test() {
Runtime.traceInstructions();
void test(Runtime r) {
r.traceInstructions();
}
}
""",
"""
class FooBar{
public void test() {
void test(Runtime r) {
}
}
"""
Expand All @@ -64,14 +64,14 @@ void traceMethodCallsRemove() {
java(
"""
class FooBar{
public void test() {
Runtime.traceMethodCalls();
void test(Runtime r) {
r.traceMethodCalls();
}
}
""",
"""
class FooBar{
public void test() {
void test(Runtime r) {
}
}
"""
Expand All @@ -89,8 +89,8 @@ void noChange() {
java(
"""
class FooBar{
public void test() {
Runtime.getRuntime();
void test(Runtime r) {
r.gc();
}
}
"""
Expand Down

0 comments on commit 428fc78

Please sign in to comment.