Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 80 for throwAsUncheckedException (0.3 sec)

  1. subprojects/build-events/src/main/java/org/gradle/internal/build/event/DefaultBuildEventsListenerRegistry.java

                    Object next;
                    try {
                        next = events.take();
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                    if (next == END) {
                        return;
                    }
                    try {
                        handle(Cast.uncheckedNonnullCast(next));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 19:34:01 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/async/ServiceLifecycle.java

                }
                while (!usages.isEmpty()) {
                    try {
                        condition.await();
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
                if (state != State.STOPPED) {
                    state = State.STOPPED;
                }
            } finally {
                lock.unlock();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:55 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/ClassLoaderUtils.java

                URLConnection urlConnection = url.openConnection();
                urlConnection.setDefaultUseCaches(false);
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        static Package[] getPackages(ClassLoader classLoader) {
            return CLASS_LOADER_PACKAGES_FETCHER.getPackages(classLoader);
        }
    
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/ModelRuleSourceDetector.java

                            }
                        })
                        .filter(Predicates.notNull());
            } catch (ExecutionException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        public boolean hasRules(Class<?> container) {
            return !Iterables.isEmpty(getDeclaredSources(container));
        }
    
        private boolean isRuleSource(Class<?> clazz) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccess.java

                onOpenAction.accept(fileLock);
            } catch (Exception e) {
                if (fileLock != null) {
                    fileLock.close();
                }
                throw UncheckedException.throwAsUncheckedException(e);
            }
            this.fileLock = fileLock;
        }
    
        @Override
        public void close() {
            if (fileLock != null) {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/conflicts/DefaultConflictHandler.java

            ConflictResolverDetails<ComponentState> details = new DefaultConflictResolverDetails<>(conflict.candidates);
            resolver.select(details);
            if (details.hasFailure()) {
                throw UncheckedException.throwAsUncheckedException(details.getFailure());
            }
            ComponentResolutionState selected = details.getSelected();
            ConflictResolutionResult result = new DefaultConflictResolutionResult(conflict.participants, selected);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 02:21:08 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/configuration/ScriptPluginFactorySelector.java

                    try {
                        return getClass().getClassLoader().loadClass(providerClassName);
                    } catch (ClassNotFoundException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
            };
        }
    
        private final ScriptPluginFactory defaultScriptPluginFactory;
        private final ProviderInstantiator providerInstantiator;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 07:44:44 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/native/src/jmh/java/org/gradle/internal/nativeintegration/filesystem/FileMetadataAccessorBenchmark.java

                    }
                    return DefaultFileMetadata.file(bfa.lastModifiedTime().toMillis(), bfa.size(), AccessType.DIRECT);
                } catch (IOException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestOutputStore.java

                try {
                    bytes = outputEvent.getMessage().getBytes(messageStorageCharset.name());
                } catch (UnsupportedEncodingException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
                output.writeSmallInt(bytes.length);
                output.writeBytes(bytes, 0, bytes.length);
            }
    
            private void mark(long classId, long testId, boolean isStdout) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/StreamByteBuffer.java

        }
    
        public String readAsString(Charset charset) {
            try {
                return doReadAsString(charset);
            } catch (CharacterCodingException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        private String doReadAsString(Charset charset) throws CharacterCodingException {
            int unreadSize = totalBytesUnread();
            if (unreadSize > 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top