)]}'
{
  "commit": "53d615a6286d1ca1fdca7dc84eee42b4e63fc70d",
  "tree": "66caa91bf43a431221dc930661469c0a75dd2b59",
  "parents": [
    "c67b626687e3bbf8296c82f93fe02003f79c749a"
  ],
  "author": {
    "name": "Nasser Grainawi",
    "email": "nasser.grainawi@linaro.org",
    "time": "Wed Apr 10 11:22:53 2024 -0600"
  },
  "committer": {
    "name": "Nasser Grainawi",
    "email": "nasser.grainawi@linaro.org",
    "time": "Wed Apr 10 20:20:17 2024 +0000"
  },
  "message": "Avoid work in Optional.orElse() calls\n\nAny code inside the orElse() will always be called, even if the result\nisn\u0027t used because the optional is present. This is wasteful at a\nminimum and can be actively harmful (as seen in [1]) because of side\neffects or performance impacts. Fix that by replacing all orElse() calls\nthat create new instances or do non-constant work with a call to\norElseGet().\n\nIt would be nice if there were an ErrorProne checker for this, but one\ndoesn\u0027t exist yet.\n\n[1] https://gerrit-review.googlesource.com/c/gerrit/+/417915/comment/0ea287cd_bfecb7f2/\n\nRelease-Notes: skip\nChange-Id: I2d3d59da88cd04a2e589b7255fc0877719a57432\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "21e2a8ddfe9e31acc84617e179328981aad8dba8",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/manager/repository/CorePluginsRepository.java",
      "new_id": "2e175ea4f1d6d7a9577f4738eecca71d6faabea5",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/manager/repository/CorePluginsRepository.java"
    },
    {
      "type": "modify",
      "old_id": "2260a6544035deecc549e31f6e9a25d76ac6e623",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/manager/repository/JenkinsCiPluginsRepository.java",
      "new_id": "76254a65b319029b3377067a39fb6bfa26109850",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/manager/repository/JenkinsCiPluginsRepository.java"
    }
  ]
}
