oopsie!!!!!!!!!
This commit is contained in:
parent
585d3e0793
commit
8f85ce91da
@ -5,6 +5,7 @@ import com.google.gson.Gson;
|
|||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.NonNull;
|
||||||
import org.bson.Document;
|
import org.bson.Document;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -25,9 +26,9 @@ public class FeatureProfile extends Serializable {
|
|||||||
*
|
*
|
||||||
* @return the feature states
|
* @return the feature states
|
||||||
*/
|
*/
|
||||||
public FeatureState getFeatureState(Feature feature) {
|
public FeatureState getFeatureState(@NonNull Feature feature) {
|
||||||
if (feature == null) {
|
if (!feature.isCanBeDisabled()) {
|
||||||
return FeatureProfile.FeatureState.DISABLED;
|
return FeatureProfile.FeatureState.ENABLED;
|
||||||
}
|
}
|
||||||
String featureName = feature.getName().toUpperCase();
|
String featureName = feature.getName().toUpperCase();
|
||||||
if (!this.featureStates.containsKey(featureName)) {
|
if (!this.featureStates.containsKey(featureName)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user