mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-09 20:31:38 +01:00
Fixed ConcurrentModification related to Export #437
This commit is contained in:
parent
3c6167ddcf
commit
a71f444bf8
@ -186,6 +186,10 @@ public class AnalysisUtils {
|
||||
|
||||
double probability = 1.0;
|
||||
|
||||
if (similarM.isEmpty() && similarW.isEmpty()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!similarM.isEmpty()) {
|
||||
int stickM = 0;
|
||||
for (StickyData stickyData : stickyStuckM) {
|
||||
@ -206,6 +210,7 @@ public class AnalysisUtils {
|
||||
|
||||
probability *= (stickW / similarW.size());
|
||||
}
|
||||
|
||||
return probability;
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,7 @@ package main.java.com.djrapitops.plan.utilities.file.export;
|
||||
import com.djrapitops.plugin.api.utility.log.Log;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ConcurrentModificationException;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
@ -34,7 +35,7 @@ public class AnalysisExport extends SpecificExport {
|
||||
} finally {
|
||||
try {
|
||||
this.cancel();
|
||||
} catch (IllegalArgumentException ignore) {
|
||||
} catch (ConcurrentModificationException | IllegalArgumentException ignore) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ public class HtmlExport extends SpecificExport {
|
||||
} finally {
|
||||
try {
|
||||
this.cancel();
|
||||
} catch (IllegalArgumentException ignore) {
|
||||
} catch (ConcurrentModificationException | IllegalArgumentException ignore) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ package main.java.com.djrapitops.plan.utilities.file.export;
|
||||
import com.djrapitops.plugin.api.utility.log.Log;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ConcurrentModificationException;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
@ -34,7 +35,7 @@ public class PlayerExport extends SpecificExport {
|
||||
} finally {
|
||||
try {
|
||||
this.cancel();
|
||||
} catch (IllegalArgumentException ignore) {
|
||||
} catch (ConcurrentModificationException | IllegalArgumentException ignore) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user