]> source.dussan.org Git - sonarqube.git/commit
SONAR-6365 use an enum to represent status of Platform
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 5 May 2015 08:10:23 +0000 (10:10 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 11 May 2015 10:28:54 +0000 (12:28 +0200)
commitb11d8425eb5bd516960d2ffdef06bed45f68bb00
tree5418df63eb25ea7c1b042e455227cfc5741c3b88
parent93226c3a8f2b8ad7837e5c9784385cefdbbdf36d
SONAR-6365 use an enum to represent status of Platform

using an enum allows testing all possible state of the Platform class based on a single value instead of combining multiple sequential method call which can return an inconsistent result of state changes in between method calls
server/sonar-server/src/main/java/org/sonar/server/platform/Platform.java