)]}'
{
  "commit": "8ba6aa71b1ccff3591afef05af05e3ed0cfe05a4",
  "tree": "7512f58c4706a72be54ca561bc437239e1e87fe4",
  "parents": [
    "571cd077964f819f3c0b6d6837e187d82104a74c"
  ],
  "author": {
    "name": "Zhi Dou",
    "email": "zhidou@google.com",
    "time": "Mon Jun 26 21:03:40 2023 +0000"
  },
  "committer": {
    "name": "Zhi Dou",
    "email": "zhidou@google.com",
    "time": "Tue Jun 27 18:57:35 2023 +0000"
  },
  "message": "aconfig: add java codegen test mode\n\nAdd java codegen test mode. The test mode will generate Flags.java and\nFeatureFlagsImpl.java differently.\n    * Flags.java will have getter and setter function to switch the\n      FeatureFlagsImpl. Flags.java will not initialize the instance\n      of FeatureFlagsImpl during initialization, thus it will force the\n      user to set up the flag values for the tests.\n    * FeatureFlagsImpl removes the dependency on DeviceConfig, and\n      allows the caller to set the values of flags.\n\nCommand changes\nThis change adds a new parameter `mode` to `create-java-lib` subcommand.\nThe default value of `mode` is production, which will generate files for\nproduction usage, and keeps the same behavior as before.\n\nThe new `mode` test is added to trigger the test mode. The command is\naconfig create-java-lib --cache\u003d\u003cpath_to_cache\u003e --out\u003d\u003cout_path\u003e\n--mode\u003dtest\n\nTest: atest aconfig.test\nBug: 288632682\nChange-Id: I7566464eb762f3107142fe787f56b17f5be631b7\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "47516b76c9da9ce6bc80a795fdafe4816f012de9",
      "old_mode": 33188,
      "old_path": "tools/aconfig/src/codegen_java.rs",
      "new_id": "15eb2d65ba5d5a6adf8e2e4c4e92e98c26f8a526",
      "new_mode": 33188,
      "new_path": "tools/aconfig/src/codegen_java.rs"
    },
    {
      "type": "modify",
      "old_id": "58831ccf47de30d2e1502c293ca59470ae216578",
      "old_mode": 33188,
      "old_path": "tools/aconfig/src/commands.rs",
      "new_id": "dd2087b3c38efcd6c35e57c88e3870684489f205",
      "new_mode": 33188,
      "new_path": "tools/aconfig/src/commands.rs"
    },
    {
      "type": "modify",
      "old_id": "e6a325dea7f3a8955d75edec549c135783d7b330",
      "old_mode": 33188,
      "old_path": "tools/aconfig/src/main.rs",
      "new_id": "e20c60cd2cc1db7b04d126b9a0121ae7c5dbeb69",
      "new_mode": 33188,
      "new_path": "tools/aconfig/src/main.rs"
    },
    {
      "type": "modify",
      "old_id": "2b031f14ce1657b950950c0071a03546a4fa0937",
      "old_mode": 33188,
      "old_path": "tools/aconfig/templates/FeatureFlagsImpl.java.template",
      "new_id": "dafd99e71b18a6243a8b49c9676128b0a1071a43",
      "new_mode": 33188,
      "new_path": "tools/aconfig/templates/FeatureFlagsImpl.java.template"
    },
    {
      "type": "modify",
      "old_id": "62116c59e2511d316a40ff3166f928451a8f1ae2",
      "old_mode": 33188,
      "old_path": "tools/aconfig/templates/Flags.java.template",
      "new_id": "eef98eb635a60bb8964b35cba7d7cfcae2934401",
      "new_mode": 33188,
      "new_path": "tools/aconfig/templates/Flags.java.template"
    }
  ]
}
