Skip to content

Commit

Permalink
fix: mismatch in notation used for SmtpConfiguration #4581 (#4600)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuriy Movchan <Yuriy.Movchan@gmail.com>
Former-commit-id: 89663c9
  • Loading branch information
yuremm and yurem authored Apr 14, 2023
1 parent b6555f1 commit b0a90da
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonCreator;

import io.jans.orm.annotation.AttributeEnum;

/**
* @author Sergey Manoylo
* @author Yuriy Movchan
* @version 03/15/2023
*/
public enum SmtpConnectProtectionType implements AttributeEnum {
Expand All @@ -27,6 +30,11 @@ public enum SmtpConnectProtectionType implements AttributeEnum {
}
}

@JsonCreator
public static SmtpConnectProtectionType forValues(String value) {
return getByValue(value);
}

/**
*
* @param value
Expand Down Expand Up @@ -58,6 +66,6 @@ public Enum<? extends AttributeEnum> resolveByValue(String value) {
@Override
public String toString() {
return value;
}
}

}

0 comments on commit b0a90da

Please sign in to comment.