Browse Source

fix since tags

master
Stefan Bodewig 8 years ago
parent
commit
8d49bb80ce
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/BuildException.java
  2. +2
    -2
      src/main/org/apache/tools/ant/types/Resource.java
  3. +1
    -1
      src/main/org/apache/tools/ant/types/ResourceCollection.java

+ 1
- 1
src/main/org/apache/tools/ant/BuildException.java View File

@@ -51,7 +51,7 @@ public class BuildException extends RuntimeException {
* Should not be {@code null}.
* @param formatArguments
* @see String#format(String, Object...)
* @since Ant 1.11
* @since Ant 1.10.2
*/
public BuildException(String pattern, Object... formatArguments) {
super(String.format(pattern, formatArguments));


+ 2
- 2
src/main/org/apache/tools/ant/types/Resource.java View File

@@ -442,12 +442,12 @@ public class Resource extends DataType implements Comparable<Resource>, Resource
* @param <T> desired type
* @param clazz
* @return {@link Optional} <T>
* @since Ant 1.11
* @since Ant 1.10.2
*/
public <T> Optional<T> asOptional(Class<T> clazz) {
return Optional.ofNullable(as(clazz));
}
@Override
protected Resource getCheckedRef() {
return (Resource) super.getCheckedRef();


+ 1
- 1
src/main/org/apache/tools/ant/types/ResourceCollection.java View File

@@ -43,7 +43,7 @@ public interface ResourceCollection extends Iterable<Resource> {
/**
* Return a {@link Stream} over this {@link ResourceCollection}.
* @return {@link Stream} of {@link Resource}
* @since Ant 1.11
* @since Ant 1.10.2
*/
default Stream<? extends Resource> stream() {
final Stream.Builder<Resource> b = Stream.builder();


Loading…
Cancel
Save