Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 56 for NumberFormatException (0.1 seconds)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
              .put(NullPointerException.class, e -> e instanceof NullPointerException)
              .put(NumberFormatException.class, e -> e instanceof NumberFormatException)
              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(SomeCheckedException.class, e -> e instanceof SomeCheckedException)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java

              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
              .put(NullPointerException.class, e -> e instanceof NullPointerException)
              .put(NumberFormatException.class, e -> e instanceof NumberFormatException)
              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(SomeCheckedException.class, e -> e instanceof SomeCheckedException)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

         *
         * @throws NumberFormatException if [s] is not an integer of any precision.
         */
        private fun parseMaxAge(s: String): Long {
          try {
            val parsed = s.toLong()
            return if (parsed <= 0L) Long.MIN_VALUE else parsed
          } catch (e: NumberFormatException) {
            // Check if the value is an integer (positive or negative) that's too big for a long.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 23.1K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java

                return !version.startsWith(jdk.substring(1));
            } else if (isRange(jdk)) {
                try {
                    return isInRange(version, getRange(jdk));
                } catch (NumberFormatException e) {
                    problems.add(new ModelProblemCollectorRequest(Severity.WARNING, Version.BASE)
                            .setMessage("Failed to determine JDK activation for profile " + profile.getId()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  5. guava/src/com/google/common/primitives/UnsignedInteger.java

        return fromIntBits(value.intValue());
      }
    
      /**
       * Returns an {@code UnsignedInteger} holding the value of the specified {@code String}, parsed as
       * an unsigned {@code int} value.
       *
       * @throws NumberFormatException if the string does not contain a parsable unsigned {@code int}
       *     value
       */
      public static UnsignedInteger valueOf(String string) {
        return valueOf(string, 10);
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  6. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

          try {
            // 1.8, 9, 10, 11, 12 etc
            val version = jvmVersion.toInt()
            if (version >= 9) return null
          } catch (_: NumberFormatException) {
            // expected on >= JDK 9
          }
    
          // Find Jetty's ALPN extension for OpenJDK.
          try {
            val alpnClassName = "org.eclipse.jetty.alpn.ALPN"
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  7. guava/src/com/google/common/primitives/UnsignedLong.java

      }
    
      /**
       * Returns an {@code UnsignedLong} holding the value of the specified {@code String}, parsed as an
       * unsigned {@code long} value.
       *
       * @throws NumberFormatException if the string does not contain a parsable unsigned {@code long}
       *     value
       */
      @CanIgnoreReturnValue
      public static UnsignedLong valueOf(String string) {
        return valueOf(string, 10);
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  8. 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)
  9. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseId.java

                } else {
                    try {
                        priority = Integer.parseInt(phase.substring(phaseEnd + 1, priorityEnd));
                        hasPriority = true;
                    } catch (NumberFormatException e) {
                        // priority must be an integer
                        priority = 0;
                        hasPriority = false;
                    }
                }
                if (hasPriority) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                String rawVal = props.getProperty(key);
                if (rawVal != null) {
                    try {
                        return new Date(Long.parseLong(rawVal));
                    } catch (NumberFormatException e) {
                        getLogger().debug("Cannot parse lastUpdated date: '" + rawVal + "'. Ignoring.", e);
                    }
                }
            }
            return null;
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 9.4K bytes
    - Click Count (0)
Back to Top