- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 45 for NumberFormatException (0.19 sec)
-
android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
} public void testDecodeIntFails() { assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("0xfffffffff")); assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("-5")); assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("-0x5")); assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("-05")); } public void testToString() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 12.5K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Aug 12 21:04:48 UTC 2024 - 17.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
// inclusive. assertThrows( NumberFormatException.class, () -> UnsignedBytes.parseUnsignedByte("0", Character.MIN_RADIX - 1)); assertThrows( NumberFormatException.class, () -> UnsignedBytes.parseUnsignedByte("0", Character.MAX_RADIX + 1)); // The radix is used as an array index, so try a negative value.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 13.4K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 21:17:54 UTC 2024 - 13.7K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 21:17:54 UTC 2024 - 13.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/Config.java
public static int getInt( String key, int def ) { String s = prp.getProperty( key ); if( s != null ) { try { def = Integer.parseInt( s ); } catch( NumberFormatException nfe ) { if( log.level > 0 ) nfe.printStackTrace( log ); } } return def; } /**
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 11.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/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 Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 12 01:54:15 UTC 2024 - 18.5K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
int length = end - start; if (length <= 0 || length > 3) { throw new NumberFormatException(); } // Disallow leading zeroes, because no clear standard exists on // whether these should be interpreted as decimal or octal. if (length > 1 && ipString.charAt(start) == '0') { throw new NumberFormatException(); } int octet = 0; for (int i = start; i < end; i++) { octet *= 10;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 47.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
if (c != ' ' && c != '\t') { return i } } return length } fun String.toLongOrDefault(defaultValue: Long): Long { return 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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 11K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/wizard/AdminWizardAction.java
final String value = systemProperties.getProperty(key); if (value != null) { try { return Integer.parseInt(value); } catch (final NumberFormatException e) {} } return defaultValue; } protected Long getDefaultLong(final String key, final Long defaultValue) { final String value = systemProperties.getProperty(key);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 12.7K bytes - Viewed (0)