)]}'
{
  "commit": "ed9bfa31ba993e1314e7a79d33e0794c7af5b7cd",
  "tree": "afeb779a961b56a4d6711aaecf22143955883d31",
  "parents": [
    "60c6c903ccc7654d436b36e0114d4aed6e679b94"
  ],
  "author": {
    "name": "cpovirk",
    "email": "cpovirk@google.com",
    "time": "Thu Jun 30 08:55:47 2022 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Thu Jun 30 08:58:06 2022 -0700"
  },
  "message": "Forbid mocking of enums under iOS.\n\nMocking of enums is already *mostly* forbidden, since enums are most compiled to `final` classes. However, if an enum has a constant that has a body, then it can\u0027t be `final`.\n\nThat means that it\u0027s mockable... for now. But under newer versions of Java, the enum class is `sealed`, which _also_ [forbids mocking](https://github.com/mockito/mockito/blob/2a66c6366a515273bbb25fb36b5915f1925833a0/src/main/java/org/mockito/internal/creation/bytebuddy/SubclassByteBuddyMockMaker.java#L168). So we\u0027re working to ban mocking of enum classes ahead of the Java upgrade.\n\nAs it happens, no one is currently mocking enums under iOS, at least inside Google. Yay!\n\nPiperOrigin-RevId: 458237423\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "97cdc311cf007e17bcff64506d09d4f41b448ab0",
      "old_mode": 33188,
      "old_path": "testing/mockito/src/main/java/com/google/j2objc/mockito/IosMockMaker.java",
      "new_id": "60abb71127ba9c9c5c9f0e822e6ee074dceec4b2",
      "new_mode": 33188,
      "new_path": "testing/mockito/src/main/java/com/google/j2objc/mockito/IosMockMaker.java"
    },
    {
      "type": "modify",
      "old_id": "3c83a68e0fd99af49392bd699111e160e8627a4f",
      "old_mode": 33188,
      "old_path": "testing/mockito/tests/com/google/j2objc/mockito/MockMakerTest.java",
      "new_id": "3525bbf5127b20f93785698d1b3d1413aee523e5",
      "new_mode": 33188,
      "new_path": "testing/mockito/tests/com/google/j2objc/mockito/MockMakerTest.java"
    }
  ]
}
