import org.sonar.core.timemachine.Periods;
import org.sonar.server.qualitygate.QualityGates;
-import static java.lang.String.format;
-
public class AppAction implements QGateWsAction {
private final QualityGates qualityGates;
writer.prop("edit", qualityGates.currentUserHasWritePermission());
}
- private void addPeriods(JsonWriter writer) {
+ private static void addPeriods(JsonWriter writer) {
writer.name("periods").beginArray();
writer.beginObject()
.prop("key", 1L)
- .prop("text", format("over Leak Period (%s)", periods.label(1)))
+ .prop("text", "Leak")
.endObject();
writer.endArray();
}