Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 52 for ex (1.03 sec)

  1. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        try {
          Ints.checkedCast(value);
          fail("Cast to int should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage(value + " not found in exception text: " + ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      // We need to test that our method behaves like the JDK method.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

         */
        protected static java.sql.Date toSqlDateJdbcEscape(final String str) {
            try {
                return java.sql.Date.valueOf(str);
            } catch (final IllegalArgumentException ex) {
                return null;
            }
        }
    
        /**
         * Converts a pattern string to a plain pattern string without delimiters.
         *
         * @param pattern the pattern string
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/filter/EncodingFilter.java

            encoding = config.getInitParameter(LastaPrepareFilter.ENCODING_KEY);
            if (encoding == null) {
                encoding = LastaPrepareFilter.DEFAULT_ENCODING;
            }
    
            // ex. sjis:Shift_JIS,eucjp:EUC-JP
            final String value = config.getInitParameter(ENCODING_MAP);
            if (StringUtil.isNotBlank(value)) {
                final String[] encodingPairs = value.split(",");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/net/InetAddresses.java

          if (end == -1) {
            end = ipString.length();
          }
          try {
            bytes[i] = parseOctet(ipString, start, end);
          } catch (NumberFormatException ex) {
            return null;
          }
          start = end + 1;
        }
    
        return bytes;
      }
    
      private static byte @Nullable [] textToNumericFormatV6(String ipString) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

         * @return The converted {@link Time}.
         */
        protected static Time toSqlTimeJdbcEscape(final String str) {
            try {
                return Time.valueOf(str);
            } catch (final IllegalArgumentException ex) {
                return null;
            }
        }
    
        /**
         * Converts a pattern string to a plain pattern string without delimiters.
         *
         * @param pattern
         *            The pattern string.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

         */
        protected static Timestamp toSqlTimestampJdbcEscape(final String str) {
            try {
                return Timestamp.valueOf(str);
            } catch (final IllegalArgumentException ex) {
                return null;
            }
        }
    
        /**
         * Converts the pattern string to a plain pattern string without delimiters.
         *
         * @param pattern
         *            The pattern string.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            if (propertyType == java.util.Date.class) {
                try {
                    return TimestampConversionUtil.toDate(arg);
                } catch (final ParseRuntimeException ex) {
                    try {
                        return DateConversionUtil.toDate(arg);
                    } catch (final ParseRuntimeException ex2) {
                        return TimeConversionUtil.toDate(arg);
                    }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Queues.java

              while (true) {
                try {
                  e = q.poll(deadline - System.nanoTime(), NANOSECONDS);
                  break;
                } catch (InterruptedException ex) {
                  interrupted = true; // note interruption and retry
                }
              }
              if (e == null) {
                break; // we already waited enough, and there are no more elements in sight
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

        val call = client.newCall(request)
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("success")
      }
    
      /**
       * Tests that use this will fail unless boot classpath is set. Ex. `-Xbootclasspath/p:/tmp/alpn-boot-8.0.0.v20140317`
       */
      private fun enableProtocol(protocol: Protocol) {
        enableTls()
        client =
          client
            .newBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Queues.java

              while (true) {
                try {
                  e = q.poll(deadline - System.nanoTime(), NANOSECONDS);
                  break;
                } catch (InterruptedException ex) {
                  interrupted = true; // note interruption and retry
                }
              }
              if (e == null) {
                break; // we already waited enough, and there are no more elements in sight
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
Back to top