@Test public void testNullArrayValue() { DocumentAnnotation da = (DocumentAnnotation) jCas.getDocumentAnnotationFs(); da.setDocumentReleasability(null); Feature f = da.getType().getFeatureByBaseName(DOCUMENT_RELEASABILITY); Object[] o = FeatureUtils.featureToArray(f, da); assertEquals(0, o.length); }
public static Object[] featureToArray(Feature f, Annotation a) { Object[] ret; if (a.getFeatureValue(f) == null) { ret = new Object[0]; } else { ret = toArray(f, a); } return ret; }
FeatureUtils { public static Object[] featureToArray(Feature f, Annotation a) { Object[] ret; if (a.getFeatureValue(f) == null) { ret = new Object[0]; } else { ret = toArray(f, a); } return ret; } }
FeatureUtils { public static Object[] featureToArray(Feature f, Annotation a) { Object[] ret; if (a.getFeatureValue(f) == null) { ret = new Object[0]; } else { ret = toArray(f, a); } return ret; } private  FeatureUtils(); }
FeatureUtils { public static Object[] featureToArray(Feature f, Annotation a) { Object[] ret; if (a.getFeatureValue(f) == null) { ret = new Object[0]; } else { ret = toArray(f, a); } return ret; } private  FeatureUtils(); static Object featureToObject(Feature f, Annotation a); static Object[] featureToArray(Feature f, Annotation a); static List<Object> featureToList(Feature f, Annotation a); }
FeatureUtils { public static Object[] featureToArray(Feature f, Annotation a) { Object[] ret; if (a.getFeatureValue(f) == null) { ret = new Object[0]; } else { ret = toArray(f, a); } return ret; } private  FeatureUtils(); static Object featureToObject(Feature f, Annotation a); static Object[] featureToArray(Feature f, Annotation a); static List<Object> featureToList(Feature f, Annotation a);  }