Skip to content

Commit

Permalink
[6.3.0] Update java_tools to v12.5 (#18868)
Browse files Browse the repository at this point in the history
* Update java_tools version to 12.4

* Update java_tools version to 12.5

* Fix error prone ComparisonOutOfRange in PersistentStringIndexer

PiperOrigin-RevId: 544294153
Change-Id: Ia89d02a025dfafa213d68ea2110a79e5adccf79c

* Fix error prone ComparisonOutOfRange in ZipTester

`filename` has type `byte[]`, so the range of each element is `[-128,127]`

PiperOrigin-RevId: 544327350
Change-Id: I58b4829044fa5891157c4ef7dbc3e70fb458e33f

---------

Co-authored-by: Googler <hvd@google.com>
  • Loading branch information
keertk and hvadehra authored Jul 12, 2023
1 parent 9d73206 commit dc1c7b3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
50 changes: 25 additions & 25 deletions distdir_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -382,80 +382,80 @@ DIST_DEPS = {
"remote_java_tools_test",
"remote_java_tools_for_testing",
],
"archive": "java_tools-v12.3.zip",
"sha256": "cbb62ecfef61568ded46260a8e8e8430755db7ec9638c0c7ff668a656f6c042f",
"archive": "java_tools-v12.5.zip",
"sha256": "942b3d88ebd785a5face38049077a1f8dab5a3500f5ebd0c0df090244acc4e16",
"urls": [
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.3/java_tools-v12.3.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.3/java_tools-v12.3.zip",
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.5/java_tools-v12.5.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.5/java_tools-v12.5.zip",
],
"used_in": [
"test_WORKSPACE_files",
],
"package_version": "12.3",
"package_version": "12.5",
},
"remote_java_tools_linux": {
"aliases": [
"remote_java_tools_test_linux",
"remote_java_tools_linux_for_testing",
],
"archive": "java_tools_linux-v12.3.zip",
"sha256": "32157b5218b151009f5b99bf5e2f65e28823d269dfbba8cd57e7da5e7cdd291d",
"archive": "java_tools_linux-v12.5.zip",
"sha256": "45dda5441b46385e8ec95d3bc4a04b9337a6ff837bb41bdaa6247d8d36edceae",
"urls": [
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.3/java_tools_linux-v12.3.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.3/java_tools_linux-v12.3.zip",
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.5/java_tools_linux-v12.5.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.5/java_tools_linux-v12.5.zip",
],
"used_in": [
"test_WORKSPACE_files",
],
"package_version": "12.3",
"package_version": "12.5",
},
"remote_java_tools_windows": {
"aliases": [
"remote_java_tools_test_windows",
"remote_java_tools_windows_for_testing",
],
"archive": "java_tools_windows-v12.3.zip",
"sha256": "ec6f91387d2353eacb0ca0492f35f68c5c7b0e7a80acd1fb825088b4b069fab1",
"archive": "java_tools_windows-v12.5.zip",
"sha256": "0b319cf762e256133f8d0f5f99fd7d35ca4cf00f35e7c0e8aea1b9fcd9cf4fb0",
"urls": [
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.3/java_tools_windows-v12.3.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.3/java_tools_windows-v12.3.zip",
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.5/java_tools_windows-v12.5.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.5/java_tools_windows-v12.5.zip",
],
"used_in": [
"test_WORKSPACE_files",
],
"package_version": "12.3",
"package_version": "12.5",
},
"remote_java_tools_darwin_x86_64": {
"aliases": [
"remote_java_tools_test_darwin_x86_64",
"remote_java_tools_darwin_x86_64_for_testing",
],
"archive": "java_tools_darwin_x86_64-v12.3.zip",
"sha256": "3c3fb1967a0f35c73ff509505de53ca4611518922a6b7c8c22a468aa7503132c",
"archive": "java_tools_darwin_x86_64-v12.5.zip",
"sha256": "7e96d0310222e9c27e4c87987978c0c59a0acb97cebdbd838ff652a13abbed77",
"urls": [
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.3/java_tools_darwin_x86_64-v12.3.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.3/java_tools_darwin_x86_64-v12.3.zip",
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.5/java_tools_darwin_x86_64-v12.5.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.5/java_tools_darwin_x86_64-v12.5.zip",
],
"used_in": [
"test_WORKSPACE_files",
],
"package_version": "12.3",
"package_version": "12.5",
},
"remote_java_tools_darwin_arm64": {
"aliases": [
"remote_java_tools_test_darwin_arm64",
"remote_java_tools_darwin_arm64_for_testing",
],
"archive": "java_tools_darwin_arm64-v12.3.zip",
"sha256": "29aa0c2de4e3cf45bc55d2995ba803ecbd1173a8d363860abbc309551db7931b",
"archive": "java_tools_darwin_arm64-v12.5.zip",
"sha256": "5fb927b24043dd79010b54be31ec5f18b38ee9dbd9fd03d8353232431a7e2392",
"urls": [
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.3/java_tools_darwin_arm64-v12.3.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.3/java_tools_darwin_arm64-v12.3.zip",
"https://mirror.bazel.build/bazel_java_tools/releases/java/v12.5/java_tools_darwin_arm64-v12.5.zip",
"https://github.com/bazelbuild/java_tools/releases/download/java_v12.5/java_tools_darwin_arm64-v12.5.zip",
],
"used_in": [
"test_WORKSPACE_files",
],
"package_version": "12.3",
"package_version": "12.5",
},
"remotejdk11_linux": {
"aliases": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private void readEntry() throws IOException {

String name = new String(filename, "UTF-8");
for (int i = 0; i < filename.length; i++) {
if ((filename[i] < ' ') || (filename[i] > 127)) {
if ((filename[i] < ' ')) {
warn(entryDesc + ": file name has unexpected non-ascii characters");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public PersistentIndexMap(Path mapFile, Path journalFile, Clock clock) throws IO
@Override
protected boolean updateJournal() {
long time = clock.nanoTime();
if (SAVE_INTERVAL_NS == 0 || time > nextUpdate) {
if (SAVE_INTERVAL_NS == 0L || time > nextUpdate) {
nextUpdate = time + SAVE_INTERVAL_NS;
return true;
}
Expand Down

0 comments on commit dc1c7b3

Please sign in to comment.