From 74bcdfd29d894ee9fd0e022f81caccce1a30b523 Mon Sep 17 00:00:00 2001 From: Henry Coles Date: Wed, 28 Aug 2024 11:17:53 +0100 Subject: [PATCH] backwards compatibility --- .../org/pitest/mutationtest/MutationStatusTestPair.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pitest/src/main/java/org/pitest/mutationtest/MutationStatusTestPair.java b/pitest/src/main/java/org/pitest/mutationtest/MutationStatusTestPair.java index 8889508e8..52d01b6ae 100644 --- a/pitest/src/main/java/org/pitest/mutationtest/MutationStatusTestPair.java +++ b/pitest/src/main/java/org/pitest/mutationtest/MutationStatusTestPair.java @@ -31,6 +31,12 @@ public final class MutationStatusTestPair implements Serializable { private final List coveringTests; + @Deprecated + // for backwards compatibility. Remove at next major release + public static MutationStatusTestPair notAnalysed(int testsRun, DetectionStatus status) { + return notAnalysed(testsRun, status, Collections.emptyList()); + } + public static MutationStatusTestPair notAnalysed(int testsRun, DetectionStatus status, List coveringTests) { return new MutationStatusTestPair(testsRun, status, Collections.emptyList(), Collections.emptyList(), coveringTests); }