Skip to content

Commit

Permalink
Renove unnecessary local variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 8, 2013
1 parent 861a89b commit 28b5e1f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ private static String toString(ThreadInfo threadInfo, boolean name) {
}
}
sb.append('\n');
String ret = sb.toString();
return (run <= 2 && ret.contains("at java.util.concurrent.LinkedBlockingQueue.take(")) ? null : ret;
return (run <= 2 && sb.indexOf("at java.util.concurrent.LinkedBlockingQueue.take(") != -1) ? null : sb.toString();
}

public static void checkForLeakedThreadManagers() {
Expand Down

0 comments on commit 28b5e1f

Please sign in to comment.