Skip to content

Commit 6ad8f35

Browse files
committed
avoid varargs allocation for checkIn(), the hot path
1 parent 821bb5d commit 6ad8f35

File tree

1 file changed

+0
-7
lines changed
  • mug-concurrent-testing/src/main/java/com/google/mu/testing/concurrent

1 file changed

+0
-7
lines changed

mug-concurrent-testing/src/main/java/com/google/mu/testing/concurrent/Happenstance.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,6 @@ private static void checkArgument(boolean condition, String message, Object... a
279279
}
280280
}
281281

282-
@FormatMethod
283-
private static void checkState(boolean condition, String message, Object... args) {
284-
if (!condition) {
285-
throw new IllegalStateException(String.format(message, args));
286-
}
287-
}
288-
289282
@FormatMethod
290283
private static void checkState(boolean condition, String message, Object arg) {
291284
if (!condition) {

0 commit comments

Comments
 (0)