Commit ab11b584 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Update news.json to version 215 of doc/MetricsTimeline.

As part of this update, support "ongoing" events introduced in version
215.
parent 494a2637
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -15,6 +15,8 @@ public class News {


  private String end;
  private String end;


  private boolean ongoing;

  private List<String> places;
  private List<String> places;


  private String[] protocols;
  private String[] protocols;
@@ -33,6 +35,10 @@ public class News {
    return this.end;
    return this.end;
  }
  }


  boolean getOngoing() {
    return this.ongoing;
  }

  List<String> getPlaces() {
  List<String> getPlaces() {
    return this.places;
    return this.places;
  }
  }
@@ -68,6 +74,9 @@ public class News {
    if (null == this.start) {
    if (null == this.start) {
      /* Invalid event without start date. */
      /* Invalid event without start date. */
      sb.append("N/A");
      sb.append("N/A");
    } else if (this.ongoing) {
      /* Ongoing event. */
      sb.append(this.start).append(" to present");
    } else if (null == this.end || this.start.equals(this.end)) {
    } else if (null == this.end || this.start.equals(this.end)) {
      /* Single-day event. */
      /* Single-day event. */
      sb.append(this.start);
      sb.append(this.start);
+201 −297

File changed.

Preview size limit exceeded, changes collapsed.