- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 56 for NumberFormatException (0.13 seconds)
-
android/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;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 47.4K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 10.8K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtils.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 9.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
private static @Nullable Double referenceTryParse(String input) { if (input.trim().length() < input.length()) { return null; } try { return Double.valueOf(input); } catch (NumberFormatException e) { return null; } } @GwtIncompatible // Doubles.tryParse private static void checkTryParse(String input) { Double expected = referenceTryParse(input);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 30.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
throw ProtocolException( "expected chunk size and optional extensions" + " but was \"$bytesRemainingInChunk$extensions\"", ) } } catch (e: NumberFormatException) { throw ProtocolException(e.message) } if (bytesRemainingInChunk == 0L) { hasMoreChunks = false val trailers = headersReader.readHeaders()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 17.5K bytes - Click Count (7) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
snapshot.setBuildNumber(Integer.parseInt(matcher.group(3))); artifact.addMetadata(new SnapshotArtifactRepositoryMetadata(artifact, snapshot)); } catch (NumberFormatException e) { logger.warn("Invalid artifact version " + artifact.getVersion() + ": " + e.getMessage()); } } } } }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 25K bytes - Click Count (0) -
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]. */
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Oct 03 17:41:45 GMT 2025 - 26.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/FluentIterableTest.java
Iterable<Integer> iterable = FluentIterable.from(input).transform(new IntegerValueOfFunction()); Iterator<Integer> resultIterator = iterable.iterator(); resultIterator.next(); assertThrows(NumberFormatException.class, () -> resultIterator.next()); } private static final class StringValueOfFunction implements Function<Integer, String> { @Override public String apply(Integer from) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 30.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
assertThat(converter.convert("#0000FF")).isEqualTo(255); assertThat(converter.convert("0666")).isEqualTo(438); } public void testStringConverter_convertError() { assertThrows(NumberFormatException.class, () -> Shorts.stringConverter().convert("notanumber")); } public void testStringConverter_nullConversions() { assertThat(Shorts.stringConverter().convert(null)).isNull();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 27.5K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
"Invalid threads value: '" + threadConfiguration + "'. Value must be positive."); } return threads; } } catch (NumberFormatException e) { throw new IllegalArgumentException("Invalid threads value: '" + threadConfiguration + "'. Supported are int and float values ending with C."); } }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Oct 28 13:01:07 GMT 2025 - 43.2K bytes - Click Count (0)