Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 3151 - 3160 of 4,689 for nulls (0.02 seconds)

  1. android/guava-tests/test/com/google/common/io/FilesTest.java

      }
    
      public void testNewReader() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        assertThrows(NullPointerException.class, () -> Files.newReader(asciiFile, null));
    
        assertThrows(NullPointerException.class, () -> Files.newReader(null, UTF_8));
    
        BufferedReader r = Files.newReader(asciiFile, US_ASCII);
        try {
          assertThat(r.readLine()).isEqualTo(ASCII);
        } finally {
          r.close();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractService.java

        final boolean shutdownWhenStartupFinishes;
    
        /**
         * The exception that caused this service to fail. This will be {@code null} unless the service
         * has failed.
         */
        final @Nullable Throwable failure;
    
        StateSnapshot(State internalState) {
          this(internalState, false, null);
        }
    
        StateSnapshot(
            State internalState, boolean shutdownWhenStartupFinishes, @Nullable Throwable failure) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 19 21:24:11 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/ByteStreamsTest.java

      public void testReadFully() throws IOException {
        byte[] b = new byte[10];
    
        assertThrows(
            NullPointerException.class, () -> ByteStreams.readFully(newTestStream(10), null, 0, 10));
    
        assertThrows(NullPointerException.class, () -> ByteStreams.readFully(null, b, 0, 10));
    
        assertThrows(
            IndexOutOfBoundsException.class, () -> ByteStreams.readFully(newTestStream(10), b, -1, 10));
    
        assertThrows(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  4. src/main/java/jcifs/util/SmbCircuitBreaker.java

            this.requestSemaphore = backpressureEnabled ? new Semaphore(maxConcurrentRequests, true) : null;
    
            // Initialize scheduler for dynamic threshold adjustment
            this.scheduler =
                    dynamicThresholdEnabled ? Executors.newScheduledThreadPool(1, r -> new Thread(r, "SmbCircuitBreaker-" + name)) : null;
    
            // Start dynamic threshold adjustment if enabled
            if (dynamicThresholdEnabled) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        WeakReference<Object> ref = new WeakReference<>(null);
        int expectedComputations = 0;
        for (int i = 0; i < iterations; i++) {
          // The entry should get garbage collected and recomputed.
          Object oldValue = ref.get();
          if (oldValue == null) {
            expectedComputations++;
          }
          ref = new WeakReference<>(cache.getUnchecked(1));
          oldValue = null;
          Thread.sleep(i);
          System.gc();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/Collections2.java

       * @return an immutable {@link Collection} containing all the different permutations of the
       *     original iterable.
       * @throws NullPointerException If the specified iterable is null, has any null elements, or if
       *     the specified comparator is null.
       * @since 12.0
       */
      public static <E> Collection<List<E>> orderedPermutations(
          Iterable<E> elements, Comparator<? super E> comparator) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 23K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/NetServerEnum2Response.java

            return bufferIndex - start;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
            final int start = bufferIndex;
            ServerInfo1 e = null;
    
            results = new ServerInfo1[numEntries];
            for (int i = 0; i < numEntries; i++) {
                results[i] = e = new ServerInfo1();
                e.name = readString(buffer, bufferIndex, 16, false);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  8. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java

            assertThrows(
                    NoSuchFileException.class, () -> MavenPropertiesLoader.loadProperties(p, mavenUserProps, null, false));
    
            Path another = propsPath.resolveSibling("another.properties");
            Files.writeString(another, "bar = chti${java.version}\n");
            MavenPropertiesLoader.loadProperties(p, mavenUserProps, null, false);
            assertEquals("chti11z", p.getProperty("fro"));
        }
    
        @Test
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Dec 01 19:41:22 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  9. buildscripts/rewrite-old-new.sh

    	purge "${MC_BUILD_DIR}"
    
    	"${MINIO_OLD[@]}" --address ":$start_port" "${WORK_DIR}/xl{1...16}" >"${WORK_DIR}/server1.log" 2>&1 &
    	pid=$!
    	disown $pid
    
    	"${WORK_DIR}/mc" ready minio/
    
    	if ! ps -p ${pid} 1>&2 >/dev/null; then
    		echo "server1 log:"
    		cat "${WORK_DIR}/server1.log"
    		echo "FAILED"
    		purge "$WORK_DIR"
    		exit 1
    	fi
    
    	"${WORK_DIR}/mc" mb minio/healing-rewrite-bucket --quiet --with-lock
    	"${WORK_DIR}/mc" cp \
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon May 27 19:17:46 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/test/net/protocol/xxx4/Handler.java

    import java.net.URLConnection;
    import java.net.URLStreamHandler;
    
    public class Handler extends URLStreamHandler {
    
        @Override
        protected URLConnection openConnection(URL u) throws IOException {
            return null;
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 951 bytes
    - Click Count (0)
Back to Top