mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
div by zero fixed
This commit is contained in:
@@ -413,7 +413,8 @@ public class PlatformTestUtil {
|
||||
for (int i= n /2- n / part /2; i< n /2+ n / part /2; i++) {
|
||||
total += time[i];
|
||||
}
|
||||
return total/(n / part);
|
||||
int middlePartLength = n / part;
|
||||
return middlePartLength == 0 ? 0 : total / middlePartLength;
|
||||
}
|
||||
|
||||
public static boolean canRunTest(@NotNull Class testCaseClass) {
|
||||
|
||||
Reference in New Issue
Block a user