From 10a6cbfe3b2680d3741ff0087bf586c906208966 Mon Sep 17 00:00:00 2001 From: Keir Nellyer Date: Fri, 19 Aug 2016 14:29:15 +0100 Subject: [PATCH] Remove handler from report object when aborting a report --- .../src/mineplex/core/report/ReportManager.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/report/ReportManager.java b/Plugins/Mineplex.Core/src/mineplex/core/report/ReportManager.java index 5e36dc7bb..d6565e7b5 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/report/ReportManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/report/ReportManager.java @@ -1,16 +1,12 @@ package mineplex.core.report; import java.util.Collection; -import java.util.Comparator; -import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.UUID; import java.util.concurrent.CompletableFuture; -import java.util.function.BiConsumer; -import java.util.function.Function; import java.util.logging.Level; import java.util.stream.Collectors; @@ -22,8 +18,6 @@ import org.bukkit.plugin.java.JavaPlugin; import com.google.common.collect.HashMultimap; import com.google.common.collect.Multimap; -import com.google.common.collect.Ordering; -import com.google.common.collect.TreeMultimap; import mineplex.core.account.CoreClientManager; import mineplex.core.chatsnap.SnapshotManager; import mineplex.core.chatsnap.command.PushSnapshotsCommand; @@ -335,6 +329,7 @@ public class ReportManager { long reportId = report.getId().orElseThrow(() -> new IllegalStateException("Report id must be present.")); int handlerId = report.getHandlerId().orElseThrow(() -> new IllegalStateException("Handler must be assigned to report.")); + report.setHandlerId(null); return _reportRepository.setAborted(reportId, handlerId, aborted); }