- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for uncheckedClose (0.16 sec)
-
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/IoActions.java
throw UncheckedException.throwAsUncheckedException(t); } uncheckedClose(resource); return result; } /** * Closes the given resource rethrowing any {@link IOException} as a {@link UncheckedIOException}. * * @param resource The resource to be closed */ public static void uncheckedClose(@Nullable Closeable resource) { try { if (resource != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.3K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/IoActionsTest.groovy
when: uncheckedClose(null) then: noExceptionThrown() when: closeQuietly(null) then: noExceptionThrown() } def "can close a valid resource"() { def resource = Mock(Closeable) when: uncheckedClose(resource) then: 1 * resource.close()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.1K bytes - Viewed (0) -
platforms/software/security/src/main/java/org/gradle/plugins/signing/signatory/pgp/PgpSignatoryFactory.java
import java.io.FileNotFoundException; import java.io.InputStream; import java.util.ArrayList; import java.util.Iterator; import static org.gradle.internal.Cast.uncheckedCast; import static org.gradle.internal.IoActions.uncheckedClose; /** * Creates {@link PgpSignatory} instances. */ public class PgpSignatoryFactory { private static final String[] PROPERTIES = new String[]{"keyId", "secretKeyRingFile", "password"};
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 7.1K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/util/internal/DefaultGradleVersion.java
import java.util.Properties; import java.util.TimeZone; import java.util.regex.Matcher; import java.util.regex.Pattern; import static java.lang.String.format; import static org.gradle.internal.IoActions.uncheckedClose; public final class DefaultGradleVersion extends GradleVersion { private static final Pattern VERSION_PATTERN = Pattern.compile("((\\d+)(\\.\\d+)+)(-(\\p{Alpha}+)-(\\w+))?(-(SNAPSHOT|\\d{14}([-+]\\d{4})?))?");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 11.8K bytes - Viewed (0)