Patrick Hiesel
a3b587c0ce
Make ProjectCache#get return an Optional<ProjectState>
...
This refactoring forces callers to think about how to handle projects
that do not exist explicitly. As a general guidance, API handlers will
want to throw a BadRequestException and components in the inner works of
Gerrit where content should have been pre-validated should throw an
IllegalStateException.
But overall, it's a case-by-case decision.
In a follow-up commit, we will remove #checkedGet and move callers to
get instead.
Change-Id: I95bbc22ad5f3279e6f40f1d05c8d7235d601e32d
2020-03-06 10:56:40 +01:00
..
2019-11-11 16:20:15 -08:00
2018-01-08 15:45:52 +01:00
2020-01-16 11:30:38 +09:00
2020-01-16 11:30:38 +09:00
2019-10-15 23:07:11 +02:00
2019-09-18 11:54:37 +02:00
2020-03-01 17:21:02 +09:00
2019-04-17 19:42:10 -07:00
2020-02-03 11:19:20 +01:00
2020-02-03 19:11:51 +09:00
2020-02-03 11:19:20 +01:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2020-02-25 17:23:48 +01:00
2019-11-11 16:20:15 -08:00
2020-02-04 10:11:16 +09:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-04-17 19:42:10 -07:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-08-05 15:35:47 +02:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-08-05 15:35:47 +02:00
2019-10-15 23:07:11 +02:00
2019-11-14 15:06:54 -08:00
2019-04-17 19:42:10 -07:00
2019-08-05 15:35:47 +02:00
2019-08-05 15:35:47 +02:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-08-05 15:35:47 +02:00
2019-04-17 19:42:10 -07:00
2020-03-06 10:56:40 +01:00
2019-08-05 15:35:47 +02:00
2020-03-06 10:56:40 +01:00
2019-04-17 19:42:10 -07:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2020-02-21 15:22:07 -05:00
2019-08-05 15:35:47 +02:00
2019-12-20 14:38:59 +01:00
2019-04-17 19:42:10 -07:00
2019-08-05 15:35:47 +02:00
2019-04-17 19:42:10 -07:00
2019-08-05 15:35:47 +02:00
2019-08-05 15:35:47 +02:00
2019-11-01 11:22:45 +09:00
2019-11-11 16:20:15 -08:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-11-04 17:16:26 +00:00
2019-08-05 15:35:47 +02:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-11-01 11:22:45 +09:00
2019-11-01 11:22:45 +09:00
2020-03-06 10:56:40 +01:00
2020-01-08 00:43:30 +00:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2020-02-19 14:23:45 -05:00
2019-11-11 16:20:15 -08:00
2020-01-24 16:19:43 +09:00
2019-11-11 16:20:15 -08:00
2020-01-24 19:46:26 +09:00
2020-01-17 15:19:46 +01:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2020-01-24 19:46:26 +09:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2019-11-27 10:13:15 +01:00
2019-11-11 16:20:15 -08:00
2020-02-03 19:11:51 +09:00
2020-02-24 13:10:45 +01:00
2019-11-01 11:22:45 +09:00
2020-02-19 14:23:45 -05:00
2019-11-20 16:17:27 -08:00
2019-10-16 09:29:38 +00:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-10-15 23:07:11 +02:00
2019-11-11 16:20:15 -08:00
2019-11-11 16:20:15 -08:00
2020-01-24 19:46:26 +09:00
2020-02-21 15:22:07 -05:00
2019-08-27 11:55:54 +02:00
2018-12-17 08:34:48 -08:00
2020-03-06 10:56:40 +01:00
2019-08-12 09:21:53 +02:00
2019-11-01 11:22:45 +09:00
2019-10-15 23:07:11 +02:00