
org.aya.util.reporter.BufferReporter Maven / Gradle / Ivy
// Copyright (c) 2020-2024 Tesla (Yinsen) Zhang.
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file.
package org.aya.util.reporter;
import kala.collection.mutable.MutableList;
import org.jetbrains.annotations.NotNull;
public record BufferReporter(@NotNull MutableList<@NotNull Problem> problems) implements CollectingReporter {
public BufferReporter() { this(MutableList.create()); }
@Override public void report(@NotNull Problem problem) { problems.append(problem); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy