Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoqnc committed Sep 18, 2024
1 parent 7914d0f commit 26654f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,45 +23,14 @@
import java.util.Map;
import javax.annotation.Nonnull;

public class CipherContext extends DetectionContext
implements IDetectionContext, ISupportKind<CipherContext.Kind> {

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<String, String> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> 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<String, String> properties) {
super(properties);
}

@NotNull @Override
Expand Down

0 comments on commit 26654f2

Please sign in to comment.