Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 81 for NumberFormatException (0.22 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

                    } else if (currentPart > minPart) {
                        return false;
                    }
                }
    
                return false; // Versions are equal
            } catch (NumberFormatException e) {
                // Fallback to string comparison if parsing fails
                return currentVersion.compareTo(minVersion) < 0;
            }
        }
    
        /**
         * Helper method to get child element text.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 37K bytes
    - Viewed (0)
  2. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 22 18:14:49 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Longs.java

      }
    
      /**
       * Returns a serializable converter object that converts between strings and longs using {@link
       * Long#decode} and {@link Long#toString()}. The returned converter throws {@link
       * NumberFormatException} if the input string is invalid.
       *
       * <p><b>Warning:</b> please see {@link Long#decode} to understand exactly how strings are parsed.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 22 18:14:49 UTC 2025
    - 29K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Doubles.java

          // TODO(lowasser): could be potentially optimized, but only with
          // extensive testing
          try {
            return Double.parseDouble(string);
          } catch (NumberFormatException e) {
            // Double.parseDouble has changed specs several times, so fall through
            // gracefully
          }
        }
        return null;
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 22 18:14:49 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                        key = fieldName.substring(fieldName.lastIndexOf('[') + 1, fieldName.length() - 1);
                        try {
                            key = Integer.valueOf(key.toString());
                        } catch (NumberFormatException e) {
                            // use key as is
                        }
                    }
    
                    location = tracker.getLocation(key);
                }
    
                if (location == null) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 03 15:06:05 UTC 2025
    - 66.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IterablesTest.java

                    return Integer.valueOf(from);
                  }
                });
    
        Iterator<Integer> resultIterator = result.iterator();
        resultIterator.next();
    
        assertThrows(NumberFormatException.class, () -> resultIterator.next());
      }
    
      public void testNullFriendlyTransform() {
        List<@Nullable Integer> input = asList(1, 2, null, 3);
        Iterable<String> result =
            Iterables.transform(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 45.6K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.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.");
            }
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 27 13:24:03 UTC 2025
    - 78.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            final String value = namedItem.getTextContent();
            if (value == null) {
                return null;
            }
            try {
                return Integer.parseInt(value);
            } catch (final NumberFormatException e) {
                if (value.endsWith("%") || value.endsWith("px")) {
                    return null;
                }
                return 0;
            }
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Dec 12 13:58:40 UTC 2025
    - 54.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/IteratorsTest.java

                  @Override
                  public Integer apply(String from) {
                    return Integer.valueOf(from);
                  }
                });
    
        result.next();
        assertThrows(NumberFormatException.class, () -> result.next());
      }
    
      public void testNullFriendlyTransform() {
        Iterator<@Nullable Integer> input = Arrays.<@Nullable Integer>asList(1, 2, null, 3).iterator();
        Iterator<String> result =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 56.7K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

            val portString = input.canonicalize(pos = pos, limit = limit, encodeSet = "")
            val i = portString.toInt()
            if (i in 1..65535) i else -1
          } catch (_: NumberFormatException) {
            -1 // Invalid port.
          }
      }
    
      companion object {
        /** Returns 80 if `scheme.equals("http")`, 443 if `scheme.equals("https")` and -1 otherwise. */
        @JvmStatic
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 63.5K bytes
    - Viewed (0)
Back to top