Java 8 - The method map is not applicable for the arguments (<noType>)
问题 I wanted to refactor my method which filter AssetLink object, get Content object that is a target of AssetLink, and then set fields of ContentLinkMetadata object basing on Content object. My new method looks like that: private List<ContentLinkMetadata> getAndFillInternalLinks(final Lesson lesson) { List<ContentLinkMetadata> internalLinks = new ArrayList<>(); lesson.getAssetLinks().stream() .filter(linkAsAssetLink -> ALLOWED_INTERNAL_LINK_TYPES.contains(linkAsAssetLink.getTargetType())) .map