Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 422 for UNCHECKED (0.08 seconds)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepository.java

    public class SimpleClassMetaDataRepository<T extends Attachable<T>> implements ClassMetaDataRepository<T> {
        private final Map<String, T> classes = new TreeMap<>();
    
        @SuppressWarnings("unchecked")
        public void load(File repoFile) {
            try {
                FileInputStream inputStream = new FileInputStream(repoFile);
                try {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed May 21 06:20:45 GMT 2025
    - 4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

            },
            finishToValueAndCloserExecutor);
        assertWithMessage("valueAndCloser was set")
            .that(awaitUninterruptibly(valueAndCloserSet, 10, SECONDS))
            .isTrue();
        @SuppressWarnings("unchecked")
        ValueAndCloser<V> valueAndCloserWithType = (ValueAndCloser<V>) valueAndCloser;
        return valueAndCloserWithType;
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableList.java

       * code.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting to any type is safe because the list will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <E> ImmutableList<E> of() {
        return (ImmutableList<E>) EMPTY;
      }
    
      /**
       * Returns an immutable list containing a single element. This list behaves and performs
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 30.6K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/ImmutableBiMap.java

      /**
       * Returns the empty bimap.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting to any type is safe because the set will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableBiMap<K, V> of() {
        return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY;
      }
    
      /** Returns an immutable bimap containing a single entry. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 22.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            // Arrange: Since SmbUnsupportedOperationException is a checked exception (extends IOException),
            // we need to use a method that can throw checked exceptions or wrap it in a RuntimeException
            @SuppressWarnings("unchecked")
            Supplier<String> supplier = mock(Supplier.class);
            when(supplier.get()).thenThrow(new RuntimeException(new SmbUnsupportedOperationException("boom")));
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

         * @return true if the label exists, false otherwise
         */
        public static Boolean labelExists(final String value) {
            return LaRequestUtil.getOptionalRequest().map(req -> {
                @SuppressWarnings("unchecked")
                final Map<String, String> labelValueMap = (Map<String, String>) req.getAttribute(Constants.LABEL_VALUE_MAP);
                if (labelValueMap != null) {
                    return labelValueMap.get(value) != null;
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.4K bytes
    - Click Count (1)
  7. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

      }
    
      int nextIndexAfterRemove(int oldNextIndex, @SuppressWarnings("unused") int removedIndex) {
        return oldNextIndex - 1;
      }
    
      int size() {
        return size;
      }
    
      @SuppressWarnings("unchecked")
      @ParametricNullness
      K getKey(int index) {
        checkElementIndex(index, size);
        return (K) keys[index];
      }
    
      int getValue(int index) {
        checkElementIndex(index, size);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/opensearch/log/exbhv/SearchLogBhv.java

                    logger.debug("Invalid date format: {}", value, e);
                }
            }
            return DfTypeUtil.toLocalDateTime(value);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        protected <RESULT extends SearchLog> RESULT createEntity(final Map<String, Object> source, final Class<? extends RESULT> entityType) {
            try {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingSetTest.java

                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        return suite;
      }
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      public void testForwarding() {
        new ForwardingWrapperTester()
            .testForwarding(
                Set.class,
                new Function<Set, Set>() {
                  @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            assertTrue(exception instanceof Throwable);
    
            // Should not require try-catch (unchecked exception)
            throwUnchecked(); // This compiles without try-catch
        }
    
        private void throwUnchecked() {
            if (Math.random() > 1) { // Never true, but compiler doesn't know
                throw new CrawlerSystemException("Unchecked");
            }
        }
    
        /**
         * Test suppressed exceptions
         */
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Wed Sep 03 14:42:53 GMT 2025
    - 20K bytes
    - Click Count (0)
Back to Top