From 26654f2052b4b6b94c1a2e1bef12138e8dcb008c Mon Sep 17 00:00:00 2001 From: Hugo Queinnec Date: Wed, 18 Sep 2024 16:25:24 +0200 Subject: [PATCH] cleaning --- .../engine/model/context/CipherContext.java | 33 +------------------ .../model/context/KeyAgreementContext.java | 17 ++++------ 2 files changed, 7 insertions(+), 43 deletions(-) diff --git a/engine/src/main/java/com/ibm/engine/model/context/CipherContext.java b/engine/src/main/java/com/ibm/engine/model/context/CipherContext.java index f1344d16..ee1af743 100644 --- a/engine/src/main/java/com/ibm/engine/model/context/CipherContext.java +++ b/engine/src/main/java/com/ibm/engine/model/context/CipherContext.java @@ -23,45 +23,14 @@ import java.util.Map; import javax.annotation.Nonnull; -public class CipherContext extends DetectionContext - implements IDetectionContext, ISupportKind { - - public enum Kind { - NONE - } - - @Nonnull private final Kind kind; - - /** - * use a property map instead - * - * @deprecated - */ - @Deprecated(since = "1.3.0") - public CipherContext(@Nonnull Kind kind) { - super(new HashMap<>()); - this.kind = kind; - } +public class CipherContext extends DetectionContext { public CipherContext() { super(new HashMap<>()); - this.kind = Kind.NONE; } public CipherContext(@Nonnull Map properties) { super(properties); - this.kind = Kind.NONE; - } - - /** - * use a property map instead - * - * @deprecated - */ - @Deprecated(since = "1.3.0") - @Nonnull - public Kind kind() { - return kind; } @Nonnull diff --git a/engine/src/main/java/com/ibm/engine/model/context/KeyAgreementContext.java b/engine/src/main/java/com/ibm/engine/model/context/KeyAgreementContext.java index 99bec033..c221bcdd 100644 --- a/engine/src/main/java/com/ibm/engine/model/context/KeyAgreementContext.java +++ b/engine/src/main/java/com/ibm/engine/model/context/KeyAgreementContext.java @@ -19,23 +19,18 @@ */ package com.ibm.engine.model.context; +import java.util.HashMap; import java.util.Map; import org.jetbrains.annotations.NotNull; -public class KeyAgreementContext extends DetectionContext implements IDetectionContext { +public class KeyAgreementContext extends DetectionContext { - public KeyAgreementContext(@NotNull Map properties) { - super(properties); + public KeyAgreementContext() { + super(new HashMap<>()); } - /** - * use a property map instead - * - * @deprecated - */ - @Deprecated(since = "1.3.0") - public KeyAgreementContext() { - super(Map.of()); + public KeyAgreementContext(@NotNull Map properties) { + super(properties); } @NotNull @Override