I'm using eclipse as my IDE of choice (or my company's choice) and can't figure out how to adjust the source code formatting settings to make usage of basic lambda expressions on stream not look totally awkward.
For example take a look at the following snippet:
final Map<String, FieldInformation> fieldInformations = fieldDescriptions
.values()
.stream()
.collect(
Collectors.toMap(f -> f.fieldId().fieldName(),
f -> new FieldInformation(f.fieldId(), f.dataType())));
This is the way eclipse decides to format the code (we enforce line breaks at 111 characters). But I want it to look more like this
final Map<String, FieldInformation> fieldInformations = fieldDescriptions
.values().stream().collect(Collectors.toMap(f -> f.fieldId().fieldName(),
f -> new FieldInformation(f.fieldId(), f.dataType())));
I just can't figure out how to change the line-break or whitespace settings in eclipse to format it this way automatically.