package de.setsoftware.reviewtool.telemetry;

/**
 * Singleton holding the configured telemetry.
 * Singleton value can change upon reconfiguration.
 */
public class Telemetry {

    private static AbstractTelemetry instance;

    public static AbstractTelemetry get() {
        return instance;
    }

    public static TelemetryEventBuilder event(String type) {
        return new TelemetryEventBuilder(instance, type);
    }

    public static void set(AbstractTelemetry t) {
        instance = t;
    }

}

@@ -217,16 +217,36 @@
 instance
+ = new NoTelemetry()
 ;%0A%0A    p
@@ -488,24 +488,50 @@
 emetry t) %7B%0A
+        assert t != null;%0A
         inst

use a NoTelemetry object as initial value