Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 818 for throws (0.31 sec)

  1. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/TrackingDynamicLookupRoutine.kt

    import org.gradle.internal.metaobject.DynamicObject
    
    
    class TrackingDynamicLookupRoutine(
        private val dynamicCallContextTracker: DynamicCallContextTracker
    ) : DynamicLookupRoutine {
    
        @Throws(MissingPropertyException::class)
        override fun property(receiver: DynamicObject, propertyName: String): Any? =
            withDynamicCall(receiver) {
                receiver.getProperty(propertyName)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/DefaultDynamicCallProblemReportingTest.kt

            reporting.leaveDynamicCall(entryPoint2)
            assertFalse(reporting.unreportedProblemInCurrentCall(key1))
            assertFalse(reporting.unreportedProblemInCurrentCall(key2))
        }
    
        @Test
        fun `throws exception on mismatched leave calls`() {
            val reporting = DefaultDynamicCallProblemReporting()
            reporting.enterDynamicCall(Any())
            assertThrows(IllegalStateException::class.java) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/wrapper-main/src/main/java/org/gradle/wrapper/GradleWrapperMain.java

            try {
                location = GradleWrapperMain.class.getProtectionDomain().getCodeSource().getLocation().toURI();
            } catch (URISyntaxException e) {
                throw new RuntimeException(e);
            }
            if (!location.getScheme().equals("file")) {
                throw new RuntimeException(String.format("Cannot determine classpath for wrapper Jar from codebase '%s'.", location));
            }
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          if (actualException instanceof InterruptedException) {
            return Outcome.INTERRUPT;
          } else {
            throw new AssertionError("unexpected exception", targetException);
          }
        } catch (IllegalAccessException e) {
          throw new AssertionError("unexpected exception", e);
        }
      }
    
      private void enterSatisfyGuardAndLeaveInCurrentThread() {
        monitor.enter();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/build-process-services/src/main/java/org/gradle/launcher/bootstrap/ProcessBootstrap.java

            } catch (Throwable throwable) {
                throwable.printStackTrace();
                System.exit(1);
            }
        }
    
        private static void runNoExit(String mainClassName, String[] args) throws Exception {
            ClassPathRegistry classPathRegistry = new DefaultClassPathRegistry(new DefaultClassPathProvider(new DefaultModuleRegistry(CurrentGradleInstallation.get())));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/AbstractReportTask.java

            projects.add(getProject());
        }
    
        @Inject
        protected BuildClientMetaData getClientMetaData() {
            throw new UnsupportedOperationException();
        }
    
        @Inject
        protected StyledTextOutputFactory getTextOutputFactory() {
            throw new UnsupportedOperationException();
        }
    
        @TaskAction
        public void generate() {
            reportGenerator().generateReport(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:32 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.groovy

                            unzipTo(zippedFile, unzipDir)
                        } catch (IOException e) {
                            throw UncheckedException.throwAsUncheckedException(e)
                        }
                    }
    
                    static void unzipTo(File inputZip, File unzipDir) throws IOException {
                        inputZip.withInputStream { stream ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          if (actualException instanceof InterruptedException) {
            return Outcome.INTERRUPT;
          } else {
            throw new AssertionError("unexpected exception", targetException);
          }
        } catch (IllegalAccessException e) {
          throw new AssertionError("unexpected exception", e);
        }
      }
    
      private void enterSatisfyGuardAndLeaveInCurrentThread() {
        monitor.enter();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/ProxyDispatchAdapter.java

                this.type = type;
                this.dispatch = dispatch;
            }
    
            @Override
            public Object invoke(Object target, Method method, Object[] parameters) throws Throwable {
                if (method.getName().equals("equals")) {
                    Object parameter = parameters[0];
                    if (parameter == null || !Proxy.isProxyClass(parameter.getClass())) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            property.empty()
            assertValueIs([])
        }
    
        def "throws NullPointerException when provider returns list with null to property"() {
            given:
            property.addAll(Providers.of([null]))
    
            when:
            property.get()
    
            then:
            def ex = thrown(NullPointerException)
        }
    
        def "throws NullPointerException when adding a null value to the property"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
Back to top