added files.
This commit is contained in:
commit
277c85eacd
150 files changed
+16138
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package me.konsolas.aac.command;
|
||||
|
||||
import me.konsolas.aac.analysis.RiskLevel;
|
||||
|
||||
enum MitigationMode {
|
||||
|
||||
OFF, NORMAL, REDUCED;
|
||||
|
||||
boolean checkMitigationMode(RiskLevel riskLevel) {
|
||||
switch(this) {
|
||||
case OFF:
|
||||
return false;
|
||||
case NORMAL:
|
||||
return riskLevel == RiskLevel.SUSPICIOUS || riskLevel == RiskLevel.HIGH;
|
||||
case REDUCED:
|
||||
return riskLevel == RiskLevel.HIGH;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user