- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for allowNullInput (0.21 sec)
-
subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/ErrorHandlingNotationParser.java
private final boolean allowNullInput; private final NotationParser<N, T> delegate; public ErrorHandlingNotationParser(Object targetTypeDisplayName, String invalidNotationMessage, boolean allowNullInput, NotationParser<N, T> delegate) { this.targetTypeDisplayName = targetTypeDisplayName; this.invalidNotationMessage = invalidNotationMessage; this.allowNullInput = allowNullInput;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 10:39:11 UTC 2019 - 2.4K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/NotationParserBuilder.java
* * TODO - attach the null safety to each converter and infer whether null is a valid input or not. */ public NotationParserBuilder<N, T> allowNullInput() { allowNullInput = true; return this; } /** * Adds a converter to use to parse notations. Converters are used in the order added. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 27 20:34:59 UTC 2020 - 6.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/file/copy/PathNotationConverter.java
} public static NotationParser<Object, String> parser() { return NotationParserBuilder .toType(String.class) .noImplicitConverters() .allowNullInput() .converter(new PathNotationConverter()) .toComposite(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 12:20:43 UTC 2024 - 3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/typeconversion/NotationParserBuilderSpec.groovy
} def "can opt in to allow null as input"() { def converter = Mock(NotationConverter) def parser = NotationParserBuilder .toType(String.class) .allowNullInput() .converter(converter) .toComposite() given: converter.convert(null, _) >> { Object n, NotationConvertResult result -> result.converted("[null]") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 12 07:56:08 UTC 2021 - 6.1K bytes - Viewed (0)