Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for NumberFormatException (0.08 sec)

  1. src/main/java/jcifs/config/PropertyConfiguration.java

                } catch (NumberFormatException e) {
                    // Invalid value ignored
                }
            }
    
            value = props.getProperty("jcifs.smb.client.soTimeout");
            if (value != null) {
                try {
                    this.smbSocketTimeout = Integer.parseInt(value);
                } catch (NumberFormatException e) {
                    // Invalid value ignored
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

      }
    
      public void testDecodeLongFails() {
        assertThrows(NumberFormatException.class, () -> UnsignedLongs.decode("0xfffffffffffffffff"));
    
        assertThrows(NumberFormatException.class, () -> UnsignedLongs.decode("-5"));
    
        assertThrows(NumberFormatException.class, () -> UnsignedLongs.decode("-0x5"));
    
        assertThrows(NumberFormatException.class, () -> UnsignedLongs.decode("-05"));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/UnsignedLongs.java

        try {
          return parseUnsignedLong(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
              new NumberFormatException("Error parsing value: " + stringValue);
          decodeException.initCause(e);
          throw decodeException;
        }
      }
    
      /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/JvmUtilTest.java

                fail("Should throw NumberFormatException");
            } catch (NumberFormatException e) {
                // Expected
            }
    
            // Test with invalid format
            System.setProperty("java.version", "invalid");
            try {
                JvmUtil.getJavaVersion();
                fail("Should throw NumberFormatException");
            } catch (NumberFormatException e) {
                // Expected
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/opensearch/config/exentity/DataConfig.java

                        if (StringUtil.isNotBlank(port)) {
                            try {
                                smbAuth.setPort(Integer.parseInt(port));
                            } catch (final NumberFormatException e) {
                                logger.warn("Failed to parse {}", port, e);
                            }
                        }
                        smbAuth.setUsername(username);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/FessEnvTest.java

                    return props;
                }
            };
    
            try {
                customEnv.getTimeAdjustTimeMillisAsLong();
                fail("Should throw NumberFormatException");
            } catch (NumberFormatException e) {
                // Expected exception
                assertNotNull(e);
            }
        }
    
        // Test various numeric values for time adjust
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

        if (c != ' ' && c != '\t') {
          return i
        }
      }
      return length
    }
    
    fun String.toLongOrDefault(defaultValue: Long): Long =
      try {
        toLong()
      } catch (_: NumberFormatException) {
        defaultValue
      }
    
    /**
     * Returns this as a non-negative integer, or 0 if it is negative, or [Int.MAX_VALUE] if it is too
     * large, or [defaultValue] if it cannot be parsed.
     */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/UnsignedInts.java

        try {
          return parseUnsignedInt(request.rawValue, request.radix);
        } catch (NumberFormatException e) {
          NumberFormatException decodeException =
              new NumberFormatException("Error parsing value: " + stringValue);
          decodeException.initCause(e);
          throw decodeException;
        }
      }
    
      /**
       * Returns the unsigned {@code int} value represented by the given decimal string.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Feb 09 16:22:33 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigTest.java

                    if (value == null) {
                        return null;
                    }
                    try {
                        return Integer.valueOf(value);
                    } catch (NumberFormatException e) {
                        return null;
                    }
                }
    
                @Override
                public Long getAsLong(String propertyKey) {
                    String value = get(propertyKey);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/Config.java

            final String s = prp.getProperty(key);
            if (s != null) {
                try {
                    def = Integer.parseInt(s);
                } catch (final NumberFormatException nfe) {
                    if (LogStream.level > 0) {
                        nfe.printStackTrace(log);
                    }
                }
            }
            return def;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top