List of usage examples for org.apache.commons.collections4 ListUtils defaultIfNull
public static <T> List<T> defaultIfNull(final List<T> list, final List<T> defaultList)
From source file:com.thoughtworks.go.plugin.access.authorization.v2.AuthenticationResponseDTO.java
public AuthenticationResponse toDomainModel() { return new AuthenticationResponse(this.user != null ? this.user.toDomainModel() : null, ListUtils.defaultIfNull(this.roles, Collections.emptyList())); }
From source file:io.cloudslang.lang.tools.build.SlangBuildMain.java
private static List<String> parseTestSuites(ApplicationArgs appArgs) { final List<String> testSuitesArg = ListUtils.defaultIfNull(appArgs.getTestSuites(), new ArrayList<String>()); return ArgumentProcessorUtils.parseTestSuitesToList(testSuitesArg); }