Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for uncheckedCall (0.13 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/AbstractFileAccess.java

    import java.util.function.Supplier;
    
    import static org.gradle.internal.UncheckedException.uncheckedCall;
    
    public abstract class AbstractFileAccess implements FileAccess {
        @Override
        public <T> T readFile(final Callable<? extends T> action) throws LockTimeoutException, FileIntegrityViolationException {
            return readFile((Supplier<? extends T>) () -> uncheckedCall(action));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/tasks/TaskMutator.java

    import groovy.util.ObservableList;
    import org.gradle.api.internal.TaskInternal;
    
    import java.beans.PropertyChangeEvent;
    import java.util.concurrent.Callable;
    
    import static org.gradle.internal.UncheckedException.uncheckedCall;
    
    public class TaskMutator {
        private final TaskInternal task;
    
        public TaskMutator(TaskInternal task) {
            this.task = task;
        }
    
        public void mutate(String method, Runnable action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/util/internal/DeferredUtil.java

    import org.gradle.api.provider.Provider;
    import org.gradle.internal.Factory;
    
    import javax.annotation.Nullable;
    import java.util.concurrent.Callable;
    
    import static org.gradle.internal.UncheckedException.uncheckedCall;
    
    public class DeferredUtil {
    
        /**
         * Successively unpacks a deferred value until it is resolved to null or something other than Callable (including Groovy Closure) or Kotlin lambda
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/PathNotationConverter.java

    import org.gradle.internal.typeconversion.TypeConversionException;
    
    import java.io.File;
    import java.util.concurrent.Callable;
    
    import static org.gradle.internal.UncheckedException.uncheckedCall;
    
    public class PathNotationConverter implements NotationConverter<Object, String> {
    
        @Override
        public void describe(DiagnosticsVisitor visitor) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. platforms/software/signing/src/main/java/org/gradle/plugins/signing/Signature.java

    import java.io.File;
    import java.util.Date;
    import java.util.concurrent.Callable;
    
    import static com.google.common.util.concurrent.Callables.returning;
    import static org.gradle.internal.UncheckedException.uncheckedCall;
    
    /**
     * A digital signature file artifact.
     *
     * <p>A signature file is always generated from another file, which may be a {@link PublishArtifact}.</p>
     */
    public class Signature extends AbstractPublishArtifact {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/ConventionAwareHelper.java

    import java.util.Collection;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Map;
    import java.util.Set;
    import java.util.concurrent.Callable;
    
    import static org.gradle.internal.UncheckedException.uncheckedCall;
    
    @SuppressWarnings({"deprecation", "FieldNamingConvention"})
    public class ConventionAwareHelper implements ConventionMapping, org.gradle.api.internal.HasConvention {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 09:53:33 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskDependency.java

    import java.util.Set;
    import java.util.concurrent.Callable;
    import java.util.function.Consumer;
    
    import static com.google.common.collect.Iterables.toArray;
    import static org.gradle.internal.UncheckedException.uncheckedCall;
    
    /**
     * A task dependency which can have both mutable and immutable dependency values.
     *
     * If dependencies are known up-front, it is much more efficient to pass
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/UncheckedException.java

         *
         * @param callable The callable to call
         * @param <T> Callable's return type
         * @return The value returned by {@link Callable#call()}
         */
        @Nullable
        public static <T> T uncheckedCall(Callable<T> callable) {
            try {
                return callable.call();
            } catch (Exception e) {
                throw throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/AbstractTask.java

    import java.util.List;
    import java.util.Optional;
    import java.util.Set;
    import java.util.concurrent.Callable;
    import java.util.stream.Collectors;
    
    import static org.gradle.internal.UncheckedException.uncheckedCall;
    
    /**
     * @deprecated This class will be removed in Gradle 9.0. Please use {@link org.gradle.api.DefaultTask} instead.
     */
    @Deprecated
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

         *
         * @param callable The callable to call
         * @param <T> Callable's return type
         * @return The value returned by {@link Callable#call()}
         */
        @Nullable
        public static <T> T uncheckedCall(Callable<T> callable) {
            try {
                return callable.call();
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
Back to top