Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 82 for NumberFormatException (0.1 sec)

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

        assertThat(converter.convert("#0000FF")).isEqualTo(255);
        assertThat(converter.convert("0666")).isEqualTo(438);
      }
    
      public void testStringConverter_convertError() {
        assertThrows(NumberFormatException.class, () -> Ints.stringConverter().convert("notanumber"));
      }
    
      public void testStringConverter_nullConversions() {
        assertThat(Ints.stringConverter().convert(null)).isNull();
    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. guava/src/com/google/common/primitives/Shorts.java

      }
    
      /**
       * Returns a serializable converter object that converts between strings and shorts using {@link
       * Short#decode} and {@link Short#toString()}. The returned converter throws {@link
       * NumberFormatException} if the input string is invalid.
       *
       * <p><b>Warning:</b> please see {@link Short#decode} to understand exactly how strings are
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/query/QueryFieldConfigTest.java

                // Should handle invalid formats gracefully
                // Check that only valid entries are added
                assertTrue(queryFieldConfig.additionalDefaultList.size() >= 0);
            } catch (NumberFormatException e) {
                // Expected for invalid float format
            }
        }
    
        public void test_init_withEmptyAndWhitespaceAnalyzedFields() {
            // Save original config
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/exec/Crawler.java

                    dayForCleanupStr = options.expires;
                    try {
                        dayForCleanup = Integer.parseInt(dayForCleanupStr);
                    } catch (final NumberFormatException e) {}
                } else {
                    dayForCleanup = ComponentUtil.getFessConfig().getDayForCleanup();
                }
                crawlingInfoHelper.updateParams(options.sessionId, options.name, dayForCleanup);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 31K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

            if (result < 0L || result > Integer.MAX_VALUE || line.isNotEmpty()) {
              throw IOException("expected an int but was \"$result$line\"")
            }
            return result.toInt()
          } catch (e: NumberFormatException) {
            throw IOException(e.message)
          }
        }
    
        /**
         * Returns true if none of the Vary headers have changed between [cachedRequest] and
         * [newRequest].
         */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

        }
    
        @Override
        public boolean isGuest() {
            return this.type == AuthenticationType.GUEST;
        }
    
        static String unescape(String str) throws NumberFormatException, UnsupportedEncodingException {
            char ch;
            int i, j, state, len;
            char[] out;
            byte[] b = new byte[1];
    
            if (str == null) {
                return null;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            invalidLengths(strings)
          }
    
          try {
            for (i in strings.indices) {
              lengths[i] = strings[i].toLong()
            }
          } catch (_: NumberFormatException) {
            invalidLengths(strings)
          }
        }
    
        /** Append space-prefixed lengths to [writer]. */
        @Throws(IOException::class)
        internal fun writeLengths(writer: BufferedSink) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

         */
        @Override
        public String toString() {
            return getName();
        }
    
        static String unescape(final String str) throws NumberFormatException, UnsupportedEncodingException {
            char ch;
            int i, j, state, len;
            char[] out;
            final byte[] b = new byte[1];
    
            if (str == null) {
                return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Ints.java

      }
    
      /**
       * Returns a serializable converter object that converts between strings and integers using {@link
       * Integer#decode} and {@link Integer#toString()}. The returned converter throws {@link
       * NumberFormatException} if the input string is invalid.
       *
       * <p><b>Warning:</b> please see {@link Integer#decode} to understand exactly how strings are
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/Floats.java

          // TODO(lowasser): could be potentially optimized, but only with
          // extensive testing
          try {
            return Float.parseFloat(string);
          } catch (NumberFormatException e) {
            // Float.parseFloat has changed specs several times, so fall through
            // gracefully
          }
        }
        return null;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.7K bytes
    - Viewed (0)
Back to top