GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Problems inferring arguments from stream pipelines · Issue #6938 · typetools/checker-framework Open DescriptionWith checker version 3.48.3. Java version 21.0.5. I'm executing the checker org.checkerframework.checker.nullness.NullnessChecker. Shouldn't NonNull satisfy a PolyNull requirement? package net.mtu.eggplant.checker; import java.util.List; import java.util.function.Predicate; import java.util.stream.Stream; import org.checkerframework.checker.nullness.qual.Nullable; public class StreamTypeArguments { static abstract class GoalElement { public abstract boolean isGoal(); } static abstract class AbstractGoal extends GoalElement { @Override public boolean isGoal() { return true; } public abstract boolean isComputed(); } static class Goal extends AbstractGoal { @Override public boolean isComputed() { return false; } public boolean isRequired() { return true; } } static class ComputedGoal extends AbstractGoal { @Override public boolean isComputed() { return true; } } public static void function(final List<GoalElement> goalElements) { final boolean somethingRequired = goalElements.stream()// .filter(GoalElement::isGoal)// .map(AbstractGoal.class::cast)// .filter(Predicate.not(AbstractGoal::isComputed)) // .map(Goal.class::cast)// .anyMatch(Goal::isRequired); } } ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |