Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 436 for unchecked (0.05 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          } catch (NoSuchElementException success) {
          }
        } catch (InterruptedException ie) {
          threadUnexpectedException(ie);
        }
      }
    
      @SuppressWarnings("unchecked")
      <T> T serialClone(T o) {
        try {
          ByteArrayOutputStream bos = new ByteArrayOutputStream();
          ObjectOutputStream oos = new ObjectOutputStream(bos);
          oos.writeObject(o);
          oos.flush();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 37.8K bytes
    - Click Count (0)
  2. docs/changelogs/changelog_4x.md

        scheduling. In your debugger you will see new thread names and more use of daemon threads.
    
     *  Fix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked
        exception the callback is now notified that the call was canceled. The exception is still sent
        to the uncaught exception handler for reporting and recovery.
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Click Count (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

                spec = new ArtifactSpec();
                spec.artifact = artifact;
                source.addArtifact(spec);
            }
            return spec;
        }
    
        @SuppressWarnings("unchecked")
        private static Set<Artifact> createSet(Object[] x) {
            return new LinkedHashSet(Arrays.asList(x));
        }
    
        private class ArtifactSpec {
            private Artifact artifact;
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 43K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        Entry<Number, String> entry = entries.iterator().next();
        assertThrows(UnsupportedOperationException.class, () -> entry.setValue("four"));
        @SuppressWarnings("unchecked")
        Entry<Integer, String> entry2 = (Entry<Integer, String>) entries.toArray()[0];
        assertThrows(UnsupportedOperationException.class, () -> entry2.setValue("four"));
      }
    
      public void testImmutableEntry() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 65K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertThrows(InvalidCacheLoadException.class, () -> cache.getUnchecked("bar"));
        assertThat(callCount.get()).isEqualTo(2);
      }
    
      /**
       * On a concurrent computation that throws an unchecked exception, all threads should get the
       * (wrapped) exception, with the loader called only once. The result should not be cached (a later
       * request should call the loader again).
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 91.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/HashBiMap.java

      private transient int[] nextInInsertionOrder;
    
      private HashBiMap(int expectedSize) {
        init(expectedSize);
      }
    
      @SuppressWarnings("unchecked")
      void init(int expectedSize) {
        checkNonnegative(expectedSize, "expectedSize");
        int tableSize = Hashing.closedTableSize(expectedSize, 1.0);
        size = 0;
    
        keys = (K[]) new Object[expectedSize];
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 14:46:34 GMT 2025
    - 37.1K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

        @Override
        public ExtensionRealmCache.CacheRecord setupExtensionsRealm(
                MavenProject project, Plugin plugin, RepositorySystemSession session) throws PluginManagerException {
            @SuppressWarnings("unchecked")
            Map<String, ExtensionRealmCache.CacheRecord> pluginRealms =
                    (Map<String, ExtensionRealmCache.CacheRecord>) project.getContextValue(KEY_EXTENSIONS_REALMS);
            if (pluginRealms == null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 09 16:35:21 GMT 2025
    - 46.4K bytes
    - Click Count (0)
  8. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        @Keep
        public void checkArray(Converter<String, Integer> c, String s) {
          calledWith(c, s);
        }
    
        void check() {
          runTester();
          @SuppressWarnings("unchecked") // We are checking it anyway
          Converter<String, Integer> defaultConverter =
              (Converter<String, Integer>) getDefaultParameterValue(0);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 47.8K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      }
    
      // TODO: Re-enable this test after moving to new serialization format in ImmutableMap.
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      @SuppressWarnings("unchecked")
      public void ignore_testSerializationNoDuplication_regularImmutableMap() throws Exception {
        // Tests that serializing a map, its keySet, and values only writes the underlying data once.
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 36.7K bytes
    - Click Count (0)
  10. docs/changelogs/changelog_3x.md

    
    ## Version 3.14.4
    
    _2019-09-29_
    
     *  Fix: Cancel calls that fail due to unexpected exceptions. We had a bug where an enqueued call
        would never call back if it crashed with an unchecked throwable, such as a
        `NullPointerException` or `OutOfMemoryError`. We now call `Callback.onFailure()` with an
        `IOException` that reports the call as canceled. The triggering exception is still delivered to
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Click Count (0)
Back to Top