Java on TC doesn't compile this code for some reason.

Dieser Commit ist enthalten in:
Matthew Miller 2018-10-11 22:04:16 +10:00
Ursprung 495b9d07b5
Commit 844971bca6

Datei anzeigen

@ -143,8 +143,7 @@ public class BlockTransformExtent extends AbstractDelegateExtent {
List<String> directionalProperties = properties.stream() List<String> directionalProperties = properties.stream()
.filter(prop -> prop instanceof BooleanProperty) .filter(prop -> prop instanceof BooleanProperty)
.filter(prop -> directionNames.contains(prop.getName())) .filter(prop -> directionNames.contains(prop.getName()))
.map(prop -> (BooleanProperty) prop) .filter(property -> (Boolean) block.getState(property))
.filter(block::getState)
.map(Property::getName) .map(Property::getName)
.map(String::toUpperCase) .map(String::toUpperCase)
.map(Direction::valueOf) .map(Direction::valueOf)