}
}
@Check
public void checkNoDuplicateEnvironmentOptions(final TargetPlatform tp) {
final Environment tpEnv = tp.getEnvironment();
String[] _knownOSValues = Platform.knownOSValues();
final Function1<String, String> _function = new Function1<String, String>() {
public String apply(final String it) {
return it.toUpperCase();
}
};
final List<String> knownOSUpperValues = ListExtensions.<String, String>map(((List<String>)Conversions.doWrapArray(_knownOSValues)), _function);
String[] _knownWSValues = Platform.knownWSValues();
final Function1<String, String> _function_1 = new Function1<String, String>() {
public String apply(final String it) {
return it.toUpperCase();
}
};
final List<String> knownWSUpperValues = ListExtensions.<String, String>map(((List<String>)Conversions.doWrapArray(_knownWSValues)), _function_1);
String[] _knownOSArchValues = Platform.knownOSArchValues();
final Function1<String, String> _function_2 = new Function1<String, String>() {
public String apply(final String it) {
return it.toUpperCase();
}
};
final List<String> knownArchUpperValues = ListExtensions.<String, String>map(((List<String>)Conversions.doWrapArray(_knownOSArchValues)), _function_2);
Locale[] _availableLocales = Locale.getAvailableLocales();
final Function1<Locale, String> _function_3 = new Function1<Locale, String>() {
public String apply(final Locale it) {
String _string = it.toString();
return _string.toUpperCase();
}
};
final List<String> knownLocale = ListExtensions.<Locale, String>map(((List<Locale>)Conversions.doWrapArray(_availableLocales)), _function_3);
IExecutionEnvironmentsManager _executionEnvironmentsManager = JavaRuntime.getExecutionEnvironmentsManager();
IExecutionEnvironment[] _executionEnvironments = _executionEnvironmentsManager.getExecutionEnvironments();
final Function1<IExecutionEnvironment, String> _function_4 = new Function1<IExecutionEnvironment, String>() {
public String apply(final IExecutionEnvironment it) {
String _id = it.getId();
return _id.toUpperCase();
}
};
final List<String> knownEE = ListExtensions.<IExecutionEnvironment, String>map(((List<IExecutionEnvironment>)Conversions.doWrapArray(_executionEnvironments)), _function_4);
EList<TargetContent> _contents = tp.getContents();
Iterable<Environment> _filter = Iterables.<Environment>filter(_contents, Environment.class);
final Function1<Environment, EList<String>> _function_5 = new Function1<Environment, EList<String>>() {
public EList<String> apply(final Environment it) {
return it.getEnv();
}
};
Iterable<EList<String>> _map = IterableExtensions.<Environment, EList<String>>map(_filter, _function_5);
Iterable<String> _flatten = Iterables.<String>concat(_map);
final Function1<String, Boolean> _function_6 = new Function1<String, Boolean>() {
public Boolean apply(final String it) {
boolean _isNullOrEmpty = StringExtensions.isNullOrEmpty(it);
return Boolean.valueOf((!_isNullOrEmpty));
}
};
Iterable<String> _filter_1 = IterableExtensions.<String>filter(_flatten, _function_6);
final List<String> envList = IterableExtensions.<String>toList(_filter_1);
final Function1<String, Boolean> _function_7 = new Function1<String, Boolean>() {
public Boolean apply(final String it) {
String _upperCase = it.toUpperCase();
String _windowingSystem = tpEnv.getWindowingSystem();
String _upperCase_1 = null;
if (_windowingSystem!=null) {
_upperCase_1=_windowingSystem.toUpperCase();
}
boolean _equals = _upperCase.equals(_upperCase_1);
return Boolean.valueOf((!_equals));
}
};
Iterable<String> _filter_2 = IterableExtensions.<String>filter(envList, _function_7);
final Function1<String, Boolean> _function_8 = new Function1<String, Boolean>() {
public Boolean apply(final String it) {
String _upperCase = it.toUpperCase();
return Boolean.valueOf(knownOSUpperValues.contains(_upperCase));
}
};
Iterable<String> _filter_3 = IterableExtensions.<String>filter(_filter_2, _function_8);
final LinkedHashMultiset<String> allOS = LinkedHashMultiset.<String>create(_filter_3);
final Function1<String, Boolean> _function_9 = new Function1<String, Boolean>() {
public Boolean apply(final String it) {
String _upperCase = it.toUpperCase();
String _operatingSystem = tpEnv.getOperatingSystem();
String _upperCase_1 = null;
if (_operatingSystem!=null) {
_upperCase_1=_operatingSystem.toUpperCase();
}
boolean _equals = _upperCase.equals(_upperCase_1);