Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 1,610 for instanceof (0.17 seconds)

  1. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

            WebApiException exception = new WebApiException(500, "Test");
    
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        public void test_serializable() {
            // Test that the exception has serialVersionUID
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/exception/PluginExceptionTest.java

            // Test that PluginException is an instance of FessSystemException
            PluginException exception = new PluginException("Test message");
    
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/Iterables.java

        if (iterable instanceof Collection) {
          Collection<? extends T> c = (Collection<? extends T>) iterable;
          if (c.isEmpty()) {
            return defaultValue;
          } else if (iterable instanceof List) {
            return getLastInNonemptyList((List<? extends T>) iterable);
          } else if (iterable instanceof SortedSet) {
            return ((SortedSet<? extends T>) iterable).last();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 18:35:28 GMT 2025
    - 43.8K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/CompactHashing.java

          return new short[buckets];
        } else {
          return new int[buckets];
        }
      }
    
      static void tableClear(Object table) {
        if (table instanceof byte[]) {
          Arrays.fill((byte[]) table, (byte) 0);
        } else if (table instanceof short[]) {
          Arrays.fill((short[]) table, (short) 0);
        } else {
          Arrays.fill((int[]) table, 0);
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/documents/ApiAdminDocumentsAction.java

                if (!doc.containsKey(indexFieldContentLength)) {
                    long contentLength = 0;
                    if (doc.get(indexFieldTitle) instanceof final String title) {
                        contentLength += title.length();
                    }
                    if (doc.get(indexFieldContent) instanceof final String content) {
                        contentLength += content.length();
                    }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy

                    errors << "Nullability breaking change"
                }
    
            } else if (member instanceof JApiConstructor) {
    
                JApiConstructor ctor = (JApiConstructor) member
                inspectParametersNullabilityOf(ctor.oldConstructor.get(), ctor.newConstructor.get())
    
            } else if (member instanceof JApiMethod) {
    
                JApiMethod method = (JApiMethod) member
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Oct 27 09:26:32 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

                        } else if (value instanceof TestUser) {
                            // Handle TestUser object
                            TestUser user = (TestUser) value;
                            result = result.replace("${" + key + ".name}", user.name);
                            result = result.replace("${" + key + ".age}", String.valueOf(user.age));
                        } else if (value instanceof Map) {
                            // Handle nested maps
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/Lists.java

        if (list instanceof ImmutableList) {
          // Avoid nullness warnings.
          List<?> reversed = ((ImmutableList<?>) list).reverse();
          @SuppressWarnings("unchecked")
          List<T> result = (List<T>) reversed;
          return result;
        } else if (list instanceof ReverseList) {
          return ((ReverseList<T>) list).getForwardList();
        } else if (list instanceof RandomAccess) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/query/WildcardQueryCommandTest.java

            QueryBuilder queryBuilder = queryCommand.convertWildcardQuery(queryContext, wildcardQuery, 1.0f);
            assertNotNull(queryBuilder);
            assertTrue(queryBuilder instanceof DefaultQueryBuilder);
    
            // Query was processed successfully
        }
    
        @Test
        public void test_convertWildcardQuery_defaultField_dismax() throws Exception {
            // Test with default field
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

      private static void rethrow(ExecutionException e) throws ExecutionException {
        Throwable wrapper = e.getCause();
        if (wrapper instanceof WrapperException) {
          Throwable cause = wrapper.getCause();
          if (cause instanceof RuntimeException) {
            throw (RuntimeException) cause;
          } else if (cause instanceof Error) {
            throw (Error) cause;
          }
        }
        throw e;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.3K bytes
    - Click Count (0)
Back to Top