Search Options

Results per page
Sort
Preferred Languages
Advance

Results 451 - 460 of 1,928 for instanceof (1.51 sec)

  1. android/guava/src/com/google/common/base/Throwables.java

        checkNotNull(throwable);
        if (throwable instanceof RuntimeException) {
          throw (RuntimeException) throwable;
        }
        if (throwable instanceof Error) {
          throw (Error) throwable;
        }
      }
    
      /**
       * Propagates {@code throwable} exactly as-is, if and only if it is an instance of {@link
       * RuntimeException} or {@link Error}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        final int value;
    
        Collider(int value) {
          this.value = value;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof Collider && ((Collider) obj).value == value;
        }
    
        @Override
        public int hashCode() {
          return 1; // evil!
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        final int value;
    
        Collider(int value) {
          this.value = value;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof Collider && ((Collider) obj).value == value;
        }
    
        @Override
        public int hashCode() {
          return 1; // evil!
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.java

        }
    
        return derivedSuites;
      }
    
      @Override
      protected SetTestSuiteBuilder<K> createDerivedKeySetSuite(TestSetGenerator<K> keySetGenerator) {
        return keySetGenerator instanceof TestSortedSetGenerator
            ? SortedSetTestSuiteBuilder.using((TestSortedSetGenerator<K>) keySetGenerator)
            : SetTestSuiteBuilder.using(keySetGenerator);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/HostSpecifier.java

          return false;
        }
      }
    
      @Override
      public boolean equals(@Nullable Object other) {
        if (this == other) {
          return true;
        }
    
        if (other instanceof HostSpecifier) {
          HostSpecifier that = (HostSpecifier) other;
          return this.canonicalForm.equals(that.canonicalForm);
        }
    
        return false;
      }
    
      @Override
      public int hashCode() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ReverseOrdering.java

      public int hashCode() {
        return -forwardOrder.hashCode();
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
        if (object == this) {
          return true;
        }
        if (object instanceof ReverseOrdering) {
          ReverseOrdering<?> that = (ReverseOrdering<?>) object;
          return this.forwardOrder.equals(that.forwardOrder);
        }
        return false;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

                    assertTrue("Method may not exist in this version", true);
                } else if (e instanceof java.lang.NoSuchMethodException) {
                    assertTrue("Method may not exist in this version", true);
                } else if (e instanceof java.lang.reflect.InvocationTargetException) {
                    // Method exists but failed to execute, which is acceptable in test environment
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                Smb2ReadRequest readRequest = new Smb2ReadRequest(mockConfig, testFileId, buffer, 100);
                assertNotNull(readRequest);
                assertTrue(readRequest instanceof ServerMessageBlock2Request);
                assertTrue(readRequest instanceof RequestWithFileId);
            }
    
            @Test
            @DisplayName("Should initialize with SMB2_READ command")
            void testCommandInitialization() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/HandlerTest.java

            URL url = new URL(null, "smb://host/share", handler);
    
            // Act
            URLConnection conn = handler.openConnection(url);
    
            // Assert
            assertNotNull(conn);
            assertTrue(conn instanceof SmbFile);
        }
    
        @Test
        @DisplayName("openConnection throws NPE for null URL")
        void testOpenConnectionWithNullUrl() {
            // Act & Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java

            // Verify the exception can be created (serialVersionUID is defined in the class)
            assertNotNull(exception);
            assertTrue(exception instanceof java.io.Serializable);
        }
    
        public void test_stackTrace() {
            // Test that stack trace is properly captured
            String message = "Stack trace test";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.9K bytes
    - Viewed (0)
Back to top