Skip to content

Commit

Permalink
Fix code style inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shitzuu committed Aug 14, 2024
1 parent d2426af commit bb5c7a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions dew-common/src/dev/shiza/dew/Dew.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package dev.shiza.dew;

import static dev.shiza.dew.event.EventBus.getEventBus;
import static dev.shiza.dew.subscription.SubscriptionFacade.getSubscriptionFacade;

import dev.shiza.dew.event.EventBus;
import dev.shiza.dew.subscription.SubscriptionFacade;

public final class Dew {

private Dew() {}

public static EventBus eventBus() {
return getEventBus(getSubscriptionFacade());
public static EventBus create() {
return EventBus.create(SubscriptionFacade.create());
}
}
2 changes: 1 addition & 1 deletion dew-common/src/dev/shiza/dew/event/EventBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public sealed interface EventBus permits EventBusImpl {

static EventBus getEventBus(final SubscriptionFacade subscriptionFacade) {
static EventBus create(final SubscriptionFacade subscriptionFacade) {
return new EventBusImpl(subscriptionFacade);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public sealed interface SubscriptionFacade permits SubscriptionService {

static SubscriptionFacade getSubscriptionFacade() {
static SubscriptionFacade create() {
return new SubscriptionService(new HashMap<>());
}

Expand Down

0 comments on commit bb5c7a8

Please sign in to comment.