}</BUG>
@Override
public JsonSerializer<?> findSerializer(SerializationConfig config,
JavaType type, BeanDescription beanDesc) {
if (Array.class.isAssignableFrom(type.getRawClass())) {
<BUG>return new SeqSerializer<Array<?>>(type, Array.class, compact);
}</BUG>
if (CharSeq.class.isAssignableFrom(type.getRawClass())) {
<BUG>return new CharSeqSerializer(type, compact);
}</BUG>
if (List.class.isAssignableFrom(type.getRawClass()) || Stack.class.isAssignableFrom(type.getRawClass())) {

import com.fasterxml.jackson.databind.SerializationConfig;
import com.fasterxml.jackson.databind.ser.Serializers;
import javaslang.*;
import javaslang.collection.*;
public class JavaslangSerializers extends Serializers.Base {
@Override
public JsonSerializer<?> findSerializer(SerializationConfig config,
JavaType type, BeanDescription beanDesc) {
if (Array.class.isAssignableFrom(type.getRawClass())) {
return new SeqSerializer<Array<?>>(type, Array.class);
}
if (CharSeq.class.isAssignableFrom(type.getRawClass())) {
return new CharSeqSerializer(type);
}
