Skip to content

Commit

Permalink
rebrand QuiltAssertions to GluonAssertions
Browse files Browse the repository at this point in the history
  • Loading branch information
sylv256 committed Jul 15, 2024
1 parent 9d5bc1d commit 364f4be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.jetbrains.annotations.NotNull;
import org.muonmc.gluon.base.api.phase.PhaseData;
import org.muonmc.gluon.base.api.phase.PhaseSorting;
import org.muonmc.gluon.base.api.util.QuiltAssertions;
import org.muonmc.gluon.base.api.util.GluonAssertions;
import org.muonmc.gluon.base.impl.GluonBaseImpl;
import org.muonmc.gluon.base.impl.event.EventPhaseData;
import org.muonmc.gluon.base.impl.event.EventRegistry;
Expand Down Expand Up @@ -178,7 +178,7 @@ public final class Event<T> {
public static <T> @NotNull Event<T> createWithPhases(@NotNull Class<? super T> type, @NotNull Function<T[], T> implementation,
@NotNull ResourceLocation... defaultPhases) {
GluonBaseImpl.ensureContainsDefaultPhase(defaultPhases);
QuiltAssertions.ensureNoDuplicates(defaultPhases, id -> new IllegalArgumentException("Duplicate event phase: " + id));
GluonAssertions.ensureNoDuplicates(defaultPhases, id -> new IllegalArgumentException("Duplicate event phase: " + id));

var event = create(type, implementation);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
/**
* A set of various assertion utilities.
*/
public final class QuiltAssertions {
private QuiltAssertions() {
throw new UnsupportedOperationException("QuiltAssertions only contains static definitions.");
public final class GluonAssertions {
private GluonAssertions() {
throw new UnsupportedOperationException("GluonAssertions only contains static definitions.");
}

/**
Expand Down

0 comments on commit 364f4be

Please sign in to comment.