Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for uncheckedCall (0.48 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/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)
  6. guava/src/com/google/common/util/concurrent/NullnessCasts.java

      // The warnings are legitimate. Each time we use this method, we document why.
      @ParametricNullness
      static <T extends @Nullable Object> T uncheckedNull() {
        return null;
      }
    
      private NullnessCasts() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 10 20:36:34 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/NullnessCasts.java

      // The warnings are legitimate. Each time we use this method, we document why.
      @ParametricNullness
      static <T extends @Nullable Object> T uncheckedNull() {
        return null;
      }
    
      private NullnessCasts() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 10 20:36:34 UTC 2022
    - 3.9K bytes
    - Viewed (0)
Back to top