Project

General

Profile

« Previous | Next » 

Revision 57322

using streams instead of guava collection transformations

View differences:

ExportResultIdentifiersMapper.java
72 72
									.map(StructuredProperty::getValue)
73 73
									.collect(Collectors.toList()))));
74 74

  
75

  
76 75
			final List<OafEntity> childrenList = d.getEntity().getChildrenList();
77 76
			if (childrenList != null && !childrenList.isEmpty()) {
78
				final ArrayList<String> mergedIds = Lists.newArrayList(Iterables.transform(childrenList, oafEntity -> oafEntity.getId()));
79
				Collections.sort(mergedIds);
80
				id.setMergedIds(mergedIds);
77
				id.setMergedIds(childrenList.stream()
78
						.map(oafEntity -> oafEntity.getId())
79
						.sorted()
80
						.collect(Collectors.toList()));
81 81
			}
82 82

  
83 83
			valueOut.set(id.toString());

Also available in: Unified diff