@Test public void testEmptyToList() { DocumentAnnotation da = (DocumentAnnotation) jCas.getDocumentAnnotationFs(); Feature f = da.getType().getFeatureByBaseName(DOCUMENT_RELEASABILITY); List<Object> o = FeatureUtils.featureToList(f, da); assertEquals(Collections.emptyList(), o); }
public static List<Object> featureToList(Feature f, Annotation a) { if (a.getFeatureValue(f) == null) { return Collections.emptyList(); } return Arrays.asList(toArray(f, a)); }
FeatureUtils { public static List<Object> featureToList(Feature f, Annotation a) { if (a.getFeatureValue(f) == null) { return Collections.emptyList(); } return Arrays.asList(toArray(f, a)); } }
FeatureUtils { public static List<Object> featureToList(Feature f, Annotation a) { if (a.getFeatureValue(f) == null) { return Collections.emptyList(); } return Arrays.asList(toArray(f, a)); } private  FeatureUtils(); }
FeatureUtils { public static List<Object> featureToList(Feature f, Annotation a) { if (a.getFeatureValue(f) == null) { return Collections.emptyList(); } return Arrays.asList(toArray(f, a)); } 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 List<Object> featureToList(Feature f, Annotation a) { if (a.getFeatureValue(f) == null) { return Collections.emptyList(); } return Arrays.asList(toArray(f, a)); } private  FeatureUtils(); static Object featureToObject(Feature f, Annotation a); static Object[] featureToArray(Feature f, Annotation a); static List<Object> featureToList(Feature f, Annotation a);  }