Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for parse_log (0.05 sec)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            // for performance, check digits instead of relying later on catching NumberFormatException
            if (!isDigits(s)) {
                return null;
            }
    
            try {
                long longValue = Long.parseLong(s);
                if (longValue > Integer.MAX_VALUE) {
                    return null;
                }
                return (int) longValue;
            } catch (NumberFormatException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

                msg += " (";
                msg += (rev != null ? rev : "");
                if (timestamp != null && !timestamp.isEmpty()) {
                    String ts = formatTimestamp(Long.parseLong(timestamp));
                    msg += (rev != null ? "; " : "") + ts;
                }
                msg += ")";
            }
            return msg;
        }
    
        private static String reduce(String s) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

            if (props != null) {
                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);
                    }
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Longs.java

      }
    
      /**
       * Parses the specified string as a signed decimal long value. The ASCII character {@code '-'} (
       * <code>'&#92;u002D'</code>) is recognized as the minus sign.
       *
       * <p>Unlike {@link Long#parseLong(String)}, this method returns {@code null} instead of throwing
       * an exception if parsing fails. Additionally, this method only accepts ASCII digits, and returns
       * {@code null} if non-ASCII digits are present in the string.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedInts.java

       *     Integer#parseInt(String)})
       */
      @CanIgnoreReturnValue
      public static int parseUnsignedInt(String string, int radix) {
        checkNotNull(string);
        long result = Long.parseLong(string, radix);
        if ((result & INT_MASK) != result) {
          throw new NumberFormatException(
              "Input " + string + " in base " + radix + " is not in the range of an unsigned integer");
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/UnsignedInts.java

       *     Integer#parseInt(String)})
       */
      @CanIgnoreReturnValue
      public static int parseUnsignedInt(String string, int radix) {
        checkNotNull(string);
        long result = Long.parseLong(string, radix);
        if ((result & INT_MASK) != result) {
          throw new NumberFormatException(
              "Input " + string + " in base " + radix + " is not in the range of an unsigned integer");
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

         */
        private static class LongItem implements Item {
            private final long value;
    
            LongItem(String str) {
                this.value = Long.parseLong(str);
            }
    
            @Override
            public int getType() {
                return LONG_ITEM;
            }
    
            @Override
            public boolean isNull() {
                return value == 0;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top