Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 81 for NumberFormatException (0.1 sec)

  1. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

        }
    
        @Override
        public boolean isGuest() {
            return this.type == AuthenticationType.GUEST;
        }
    
        static String unescape(String str) throws NumberFormatException, UnsupportedEncodingException {
            char ch;
            int i, j, state, len;
            char[] out;
            byte[] b = new byte[1];
    
            if (str == null) {
                return null;
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  2. 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].
         */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  3. 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) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  4. 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();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  5. 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.");
            }
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

         */
        @Override
        public String toString() {
            return getName();
        }
    
        static String unescape(final String str) throws NumberFormatException, UnsupportedEncodingException {
            char ch;
            int i, j, state, len;
            char[] out;
            final byte[] b = new byte[1];
    
            if (str == null) {
                return null;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenProperties.java

                            out.append((char) value);
                            unicode.setLength(0);
                            inUnicode = false;
                            hadSlash = false;
                        } catch (NumberFormatException nfe) {
                            throw new IllegalArgumentException("Unable to parse unicode value: " + unicode, nfe);
                        }
                    }
                    continue;
                }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 09:03:48 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

                            out.append((char) value);
                            unicode.setLength(0);
                            inUnicode = false;
                            hadSlash = false;
                        } catch (NumberFormatException nfe) {
                            throw new IllegalArgumentException("Unable to parse unicode value: " + unicode, nfe);
                        }
                    }
                    continue;
                }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 38.4K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            invalidLengths(strings)
          }
    
          try {
            for (i in strings.indices) {
              lengths[i] = strings[i].toLong()
            }
          } catch (_: NumberFormatException) {
            invalidLengths(strings)
          }
        }
    
        /** Append space-prefixed lengths to [writer]. */
        @Throws(IOException::class)
        internal fun writeLengths(writer: BufferedSink) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Ints.java

      }
    
      /**
       * Returns a serializable converter object that converts between strings and integers using {@link
       * Integer#decode} and {@link Integer#toString()}. The returned converter throws {@link
       * NumberFormatException} if the input string is invalid.
       *
       * <p><b>Warning:</b> please see {@link Integer#decode} to understand exactly how strings are
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 22 18:14:49 UTC 2025
    - 31.3K bytes
    - Viewed (0)
Back to top