Skip to content

Commit 24b47a5

Browse files
committed
Fix CoatMux.
1 parent dfdc450 commit 24b47a5

File tree

1 file changed

+2
-2
lines changed
  • durian-swt/src/main/java/com/diffplug/common/swt

1 file changed

+2
-2
lines changed

durian-swt/src/main/java/com/diffplug/common/swt/CoatMux.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public Chit chit() {
107107

108108
/** Adds a persistent {@link Layer} which will be populated immediately by the given `Coat`, using `value` as the key. */
109109
public <T> Layer<T> addCoat(Coat coat, @Nullable T value) {
110-
return addCoat(Coat.Returning.fromNonReturning(coat, value));
110+
return addCoat(Coat.Returning.Companion.fromNonReturning(coat, value));
111111
}
112112

113113
/** Adds a persistent {@link Layer} which will be populated immediately by the given `Coat.Returning`, using the return value as the key. */
@@ -161,7 +161,7 @@ private <T> T makeTemporary(Layer<T> layer) {
161161

162162
/** Sets the current content of this `CoatMux`, gets disposed as soon as anything else becomes the top layer. */
163163
public void setCoat(Coat coat) {
164-
setCoatReturning(Coat.Returning.fromNonReturning(coat, null));
164+
setCoatReturning(Coat.Returning.Companion.fromNonReturning(coat, null));
165165
}
166166

167167
/** Sets the current content of this `CoatMux`, gets disposed as soon as anything else becomes the top layer. */

0 commit comments

Comments
 (0)