Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 1,279 for try (0.01 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java

            try {
                ClassLoader projectRealm = project.getClassRealm();
                if (projectRealm != null && projectRealm != tccl) {
                    Thread.currentThread().setContextClassLoader(projectRealm);
                }
    
                if (project.getDependencyArtifacts() == null) {
                    try {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  2. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

        assertThat(e).hasCauseThat().isInstanceOf(InterruptedException.class);
      }
    
      public void testAwait_countDownLatch_interrupted() {
        Interruptenator interruptenator = new Interruptenator(Thread.currentThread());
        try {
          CountDownLatch latch = new CountDownLatch(1);
          RuntimeException expected =
              assertThrows(RuntimeException.class, () -> GcFinalization.await(latch));
          assertWrapsInterruptedException(expected);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Dec 08 17:02:07 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java

        try {
          assertFalse(getMap().remove(null, v3()));
        } catch (NullPointerException tolerated) {
          // since the operation would be a no-op, the exception is not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testRemove_nullValueQueriesUnsupported() {
        try {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 4K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java

        try {
          assertFalse(getMap().remove(null, v3()));
        } catch (NullPointerException tolerated) {
          // since the operation would be a no-op, the exception is not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testRemove_nullValueQueriesUnsupported() {
        try {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  5. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      init {
        delegate.dispatcher = dispatcher.wrap()
      }
    
      private var started: Boolean = false
    
      @Synchronized override fun before() {
        if (started) return
        try {
          start()
        } catch (e: IOException) {
          throw RuntimeException(e)
        }
      }
    
      @JvmName("-deprecated_port")
      fun getPort(): Int = port
    
      fun toProxyAddress(): Proxy {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 00:19:42 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  6. internal/bpool/bpool_test.go

    		bp.Get() // discard
    	}
    
    	// Try putting some invalid buffers into pool
    	bp.Put(make([]byte, bp.w, bp.wcap-1)) // wrong capacity is rejected (less)
    	bp.Put(make([]byte, bp.w, bp.wcap+1)) // wrong capacity is rejected (more)
    	bp.Put(make([]byte, width))           // wrong capacity is rejected (very less)
    	if len(bp.c) > 0 {
    		t.Fatal("bytepool should have rejected invalid packets")
    	}
    
    	// Try putting a short slice into pool
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/net/HostSpecifier.java

        String host = parsedHost.getHost();
    
        // Try to interpret the specifier as an IP address. Note we build
        // the address rather than using the .is* methods because we want to
        // use InetAddresses.toUriString to convert the result to a string in
        // canonical form.
        InetAddress addr = null;
        try {
          addr = InetAddresses.forString(host);
        } catch (IllegalArgumentException e) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6K bytes
    - Click Count (0)
  8. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        equivalenceMock.expectDistinct(group1Item2, group1Item1);
    
        equivalenceMock.expectHash(group1Item1, 1);
        equivalenceMock.expectHash(group1Item2, 1);
    
        equivalenceMock.replay();
    
        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          assertThat(expected)
              .hasMessageThat()
              .contains(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 27 16:19:35 GMT 2024
    - 8.4K bytes
    - Click Count (0)
  9. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        equivalenceMock.expectDistinct(group1Item2, group1Item1);
    
        equivalenceMock.expectHash(group1Item1, 1);
        equivalenceMock.expectHash(group1Item2, 1);
    
        equivalenceMock.replay();
    
        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          assertThat(expected)
              .hasMessageThat()
              .contains(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 27 16:19:35 GMT 2024
    - 8.4K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java

            // If we haven't been able to resolve the plugin from the repository,
            // as a last resort, we go through all declared plugins, load them
            // one by one, and try to find a matching prefix.
            if (result == null && build != null) {
                result = resolveFromProject(request, build.getPlugins());
                if (result == null && management != null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 17 13:14:10 GMT 2025
    - 11.9K bytes
    - Click Count (0)
Back to Top