manifold
manifold copied to clipboard
Add @Duplicates(Class declaringType, SourceVersion sinceJavaVersion) annotation so that extension method authors can tag known semantically duplicate methods
Add @Duplicates(Class declaringType, SourceVersion sinceJavaRelease) annotation so that extension method authors can tag known semantically duplicates methods.
@Extension
public class ManifoldStreamCollectionsExt {
@Duplicates(Stream.class, RELEASE_16)
public static <T> List<T> toList(@This Stream<T> thiz) {
return thiz.collect(Collectors.toList());
}
}
Can you use @Duplicates with isEmpty() on manifold.text.extensions.java.lang.CharSequence.ManCharSequenceExt?
Duplicate extension method. 'isEmpty(java.lang.CharSequence)' from 'manifold.text.extensions.java.lang.CharSequence.ManCharSequenceExt' duplicates a method in the extended class 'java.lang.CharSequence'
I see that you're implementing this with the @Expires annotation for Iterable.reversed().
Could you also add this to:
Stream.toList()inManifoldStreamCollectionsExtin manifold-collections (since java 16)CharSequence.isEmpty()inManCharSequenceExtmanifold-text (since java 15)
Marking this issue as fixed with the @Expires annotation