Skip to content

Commit

Permalink
fixed import (maven build)
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Nov 29, 2017
1 parent d43e78e commit f35738a
Showing 1 changed file with 5 additions and 11 deletions.
Expand Up @@ -18,20 +18,14 @@

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.*;

import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.namespace.QName;

import com.evolveum.midpoint.prism.*;
import com.evolveum.midpoint.web.component.input.*;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;
import com.github.sommeri.less4j.utils.ArraysUtils;
import org.apache.commons.collections.ListUtils;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.ClassUtils;
import org.apache.commons.lang.Validate;
import org.apache.wicket.AttributeModifier;
Expand Down Expand Up @@ -665,12 +659,12 @@ protected ObjectFilter createCustomFilter() {
protected boolean isEditButtonEnabled() {
return valueWrapperModel.getObject().isEditEnabled();
}

@Override
public List<QName> getSupportedTypes() {
public List<QName> getSupportedTypes() {
List<QName> targetTypeList = ((ReferenceWrapper) valueWrapperModel.getObject().getItem()).getTargetTypes();
if (targetTypeList == null || WebComponentUtil.isAllNulls(targetTypeList)){
return ArraysUtils.asList(ObjectType.COMPLEX_TYPE);
if (targetTypeList == null || WebComponentUtil.isAllNulls(targetTypeList)) {
return Arrays.asList(ObjectType.COMPLEX_TYPE);
}
return targetTypeList;
}
Expand Down

0 comments on commit f35738a

Please sign in to comment.