Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for checkFile (0.07 seconds)

  1. build-conventions/src/main/java/org/elasticsearch/gradle/internal/checkstyle/SnippetLengthCheck.java

            this.max = max;
        }
    
        @Override
        protected void processFiltered(File file, FileText fileText) throws CheckstyleException {
            checkFile((line, message) -> log(line, message), max, fileText.toLinesArray());
        }
    
        static void checkFile(BiConsumer<Integer, String> log, int max, String... lineArray) {
            LineItr lines = new LineItr(Arrays.asList(lineArray).iterator());
            while (lines.hasNext()) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jun 10 23:06:44 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/DependencyLicensesTask.java

                String dependencyName = getDependencyName(mappings, depName);
                logger.info("mapped dependency name {} to {} for license/notice check", depName, dependencyName);
                checkFile(dependencyName, jarName, licenses, "LICENSE");
                checkFile(dependencyName, jarName, notices, "NOTICE");
    
                File licenseFile = new File(licensesDir, getFileName(dependencyName, licenses, "LICENSE"));
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jul 26 12:16:14 GMT 2021
    - 14.3K bytes
    - Click Count (0)
  3. cmd/xl-storage_unix_test.go

    	if err = disk.AppendFile(t.Context(), testCase.volName, pathJoin("hello-world.txt", xlStorageFormatFile), []byte("Hello World")); err != nil {
    		t.Fatalf("Create a file `test` failed with %s expected to pass.", err)
    	}
    
    	// CheckFile - stat the file.
    	if _, err := disk.StatInfoFile(t.Context(), testCase.volName, "hello-world.txt/"+xlStorageFormatFile, false); err != nil {
    		t.Fatalf("Stat failed with %s expected to pass.", err)
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            Thread.sleep(200);
    
            CIFSContext checkContext = createFreshContext();
            SmbFile checkFile = new SmbFile(baseUrl + "shared/nonexistent_" + timestamp + ".txt", checkContext);
            assertTrue(checkFile.exists(), "Created file should exist");
    
            // Delete and check again
            checkFile.delete();
            Thread.sleep(200);
    
            CIFSContext verifyContext = createFreshContext();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 56K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/EnumMultiset.java

      }
    
      /**
       * Returns {@code element} cast to {@code E}, if it actually is a nonnull E. Otherwise, throws
       * either a NullPointerException or a ClassCastException as appropriate.
       */
      private void checkIsE(Object element) {
        checkNotNull(element);
        if (!isActuallyE(element)) {
          throw new ClassCastException("Expected an " + type + " but got " + element);
        }
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/EnumMultiset.java

      }
    
      /**
       * Returns {@code element} cast to {@code E}, if it actually is a nonnull E. Otherwise, throws
       * either a NullPointerException or a ClassCastException as appropriate.
       */
      private void checkIsE(Object element) {
        checkNotNull(element);
        if (!isActuallyE(element)) {
          throw new ClassCastException("Expected an " + type + " but got " + element);
        }
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9K bytes
    - Click Count (0)
  7. src/cmd/api/main_test.go

    	}
    	if c.Dir != "" {
    		s += fmt.Sprintf(" [%s]", c.Dir)
    	}
    	return s
    }
    
    var internalPkg = regexp.MustCompile(`(^|/)internal($|/)`)
    
    var exitCode = 0
    
    func Check(t *testing.T) {
    	checkFiles, err := filepath.Glob(filepath.Join(testenv.GOROOT(t), "api/go1*.txt"))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var nextFiles []string
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Mar 02 13:20:41 GMT 2026
    - 31.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/LocalCache.java

         * refresh.
         */
        @CanIgnoreReturnValue
        @Nullable V refresh(K key, int hash, CacheLoader<? super K, V> loader, boolean checkTime) {
          LoadingValueReference<K, V> loadingValueReference =
              insertLoadingValueReference(key, hash, checkTime);
          if (loadingValueReference == null) {
            return null;
          }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  9. guava/src/com/google/common/cache/LocalCache.java

         * refresh.
         */
        @CanIgnoreReturnValue
        @Nullable V refresh(K key, int hash, CacheLoader<? super K, V> loader, boolean checkTime) {
          LoadingValueReference<K, V> loadingValueReference =
              insertLoadingValueReference(key, hash, checkTime);
          if (loadingValueReference == null) {
            return null;
          }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
Back to Top