private void ensureOnlyOneReporter()

in src/main/java/com/microsoft/appcenter/espresso/ReportHelper.java [22:28]


    private void ensureOnlyOneReporter() {
        if(helperId == -1) {
            helperId = helperIdCounter.incrementAndGet();
        } else if(helperId != helperIdCounter.get()) {
            throw new IllegalStateException("More than one ReportHelper is active, this will cause report generation to fail. One common cause for this @Rules in test class and in its super class");
        }
    }