Skip to content

Commit

Permalink
[SMALLFIX] Revert unrelated change
Browse files Browse the repository at this point in the history
  • Loading branch information
apc999 committed May 16, 2017
1 parent dddd5a3 commit b2054bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions core/common/src/main/java/alluxio/util/CommonUtils.java
Expand Up @@ -249,8 +249,7 @@ public static void waitFor(String description, Function<Void, Boolean> condition
int timeout = options.getTimeout();
while (!condition.apply(null)) {
if (timeout != WaitForOptions.NEVER && System.currentTimeMillis() - start > timeout) {
throw new RuntimeException(
String.format("Timed out waiting for %s after %d ms", description, timeout));
throw new RuntimeException("Timed out waiting for " + description);
}
CommonUtils.sleepMs(interval);
}
Expand All @@ -273,8 +272,7 @@ public static <T> T waitForResult(String description, Function<Void, T> operatio
int timeout = options.getTimeout();
while ((t = operation.apply(null)) == null) {
if (timeout != WaitForOptions.NEVER && System.currentTimeMillis() - start > timeout) {
throw new RuntimeException(
String.format("Timed out waiting for %s after %d ms", description, timeout));
throw new RuntimeException("Timed out waiting for " + description);
}
CommonUtils.sleepMs(interval);
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -723,7 +723,7 @@
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit b2054bb

Please sign in to comment.