Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,905 for instanceof (1.04 sec)

  1. 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);
        }
    
        public void test_throwAndCatch() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/exception/SUnsupportedOperationExceptionTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.exception;
    
    import static org.hamcrest.CoreMatchers.instanceOf;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.notNullValue;
    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * @author wyukawa
     *
     */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

        if (cause instanceof Error) {
          throw new ExecutionError((Error) cause);
        } else if (cause instanceof RuntimeException) {
          throw new UncheckedExecutionException(cause);
        } else {
          throw new ExecutionException(cause);
        }
      }
    
      private void wrapAndThrowRuntimeExecutionExceptionOrError(Throwable cause) {
        if (cause instanceof Error) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof ConstructorParameterSingleValue;
        }
    
        @Override
        public int hashCode() {
          return 1;
        }
    
        public static class Singleton {
          public static final Singleton INSTANCE = new Singleton();
    
          private Singleton() {}
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/UniAddress.java

         */
        @Override
        public InetAddress toInetAddress() throws UnknownHostException {
            if (this.addr instanceof Address) {
                return ((Address) this.addr).toInetAddress();
            }
            if (this.addr instanceof InetAddress) {
                return (InetAddress) this.addr;
            }
            return null;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

          return indexOf(target) >= 0;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          return target instanceof Long ? parent.indexOf((Long) target) : -1;
        }
    
        @Override
        public int lastIndexOf(@Nullable Object target) {
          return target instanceof Long ? parent.lastIndexOf((Long) target) : -1;
        }
    
        @Override
        public List<Long> subList(int fromIndex, int toIndex) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/ImmutableIntArray.java

          return indexOf(target) >= 0;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          return target instanceof Integer ? parent.indexOf((Integer) target) : -1;
        }
    
        @Override
        public int lastIndexOf(@Nullable Object target) {
          return target instanceof Integer ? parent.lastIndexOf((Integer) target) : -1;
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/DoubleConversionUtil.java

            if (o == null) {
                return null;
            } else if (o instanceof Double) {
                return (Double) o;
            } else if (o instanceof Number) {
                return Double.valueOf(((Number) o).doubleValue());
            } else if (o instanceof String) {
                return toDouble((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/BigDecimalConversionUtil.java

                return null;
            } else if (o instanceof BigDecimal) {
                return (BigDecimal) o;
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
                    return new BigDecimal(new SimpleDateFormat(pattern).format(o));
                }
                return new BigDecimal(Long.toString(((java.util.Date) o).getTime()));
            } else if (o instanceof String) {
                final String s = (String) o;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

        return !disjoint(a, b);
      }
    
      private static Method extractMethod(Test test) {
        if (test instanceof AbstractTester) {
          AbstractTester<?> tester = (AbstractTester<?>) test;
          return getMethod(tester.getClass(), tester.getTestMethodName());
        } else if (test instanceof TestCase) {
          TestCase testCase = (TestCase) test;
          return getMethod(testCase.getClass(), testCase.getName());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top