diff options
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/phases/UpdateStatusJob.java')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/phases/UpdateStatusJob.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/phases/UpdateStatusJob.java b/sonar-batch/src/main/java/org/sonar/batch/phases/UpdateStatusJob.java index 0dd90eca8df..02056e53899 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/phases/UpdateStatusJob.java +++ b/sonar-batch/src/main/java/org/sonar/batch/phases/UpdateStatusJob.java @@ -74,7 +74,7 @@ public class UpdateStatusJob implements BatchComponent { private void enableCurrentSnapshot() { Snapshot previousLastSnapshot = resourcePersister.getLastSnapshot(snapshot, false); - boolean isLast = (previousLastSnapshot == null || previousLastSnapshot.getCreatedAt().before(snapshot.getCreatedAt())); + boolean isLast = previousLastSnapshot == null || previousLastSnapshot.getCreatedAt().before(snapshot.getCreatedAt()); setFlags(snapshot, isLast, Snapshot.STATUS_PROCESSED); logSuccess(LoggerFactory.getLogger(getClass())); } @@ -113,7 +113,7 @@ public class UpdateStatusJob implements BatchComponent { query.setParameter("last", last); query.setParameter("rootId", snapshot.getId()); query.setParameter("path", snapshot.getPath() + snapshot.getId() + ".%"); - query.setParameter("pathRootId", (snapshot.getRootId() == null ? snapshot.getId() : snapshot.getRootId())); + query.setParameter("pathRootId", snapshot.getRootId()==null ? snapshot.getId() : snapshot.getRootId()); query.executeUpdate(); session.commit(); |