- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for getSha1 (0.11 seconds)
-
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/UpdateShasTask.java
} private void createSha(File dependency, String jarName, File shaFile) throws IOException, NoSuchAlgorithmException { logger.lifecycle("Adding sha for " + jarName); String sha = parentTask.get().getSha1(dependency); Files.write(shaFile.toPath(), sha.getBytes(StandardCharsets.UTF_8), StandardOpenOption.CREATE); } @Internal public DependencyLicensesTask getParentTask() {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.6K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/DependencyLicensesTask.java
byte[] fileBytes = Files.readAllBytes(shaFile.toPath()); String expectedSha = new String(fileBytes, StandardCharsets.UTF_8).trim(); String sha = getSha1(jar); if (expectedSha.equals(sha) == false) { final String exceptionMessage = String.format( Locale.ROOT, "SHA has changed! Expected %s for %s but got %s."
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) -
android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
h = remix(h); buf[bufLen++] = getChar(h); h ^= fingerprint(buf, i * i % bufLen); h = remix(h); buf[bufLen++] = getChar(h); h ^= fingerprint(buf, i * i * i % bufLen); h = remix(h); buf[bufLen++] = getChar(h); h ^= fingerprint(buf, bufLen); h = remix(h); buf[bufLen++] = getChar(h); int x0 = buf[bufLen - 1] & 0xff;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 6.4K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Chars.java
} /** * Returns the {@code char} value whose big-endian representation is stored in the first 2 bytes * of {@code bytes}; equivalent to {@code ByteBuffer.wrap(bytes).getChar()}. For example, the * input byte array {@code {0x54, 0x32}} would yield the {@code char} value {@code '\\u5432'}. * * <p>Arguably, it's preferable to use {@link java.nio.ByteBuffer}; that library exposes much moreCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 24.2K bytes - Click Count (0)