Skip to content

Commit 0bf463b

Browse files
vaadin-bottltv
andauthored
fix: remove type parameter from Signal.effect (#24022) (#24024)
The removal of type parameter T from the Signal.effect methods is binary-compatible and source-compatible. Fixes: #23973 Co-authored-by: Tomi Virtanen <tltv@vaadin.com>
1 parent 6d71a70 commit 0bf463b

File tree

1 file changed

+2
-7
lines changed
  • flow-server/src/main/java/com/vaadin/flow/signals

1 file changed

+2
-7
lines changed

flow-server/src/main/java/com/vaadin/flow/signals/Signal.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ default T peek() {
140140
* effect.remove(); // to remove the effect when no longer needed
141141
* </pre>
142142
*
143-
* @param <C>
144-
* the type of the component
145143
* @param owner
146144
* the owner component for which the effect is applied, must not
147145
* be <code>null</code>
@@ -151,8 +149,7 @@ default T peek() {
151149
* @return a {@link Registration} that can be used to remove the effect
152150
* function
153151
*/
154-
static <C extends Component> Registration effect(C owner,
155-
EffectAction effectFunction) {
152+
static Registration effect(Component owner, EffectAction effectFunction) {
156153
return ElementEffect.effect(owner.getElement(), effectFunction);
157154
}
158155

@@ -174,8 +171,6 @@ static <C extends Component> Registration effect(C owner,
174171
* });
175172
* </pre>
176173
*
177-
* @param <C>
178-
* the type of the component
179174
* @param owner
180175
* the owner component for which the effect is applied, must not
181176
* be <code>null</code>
@@ -185,7 +180,7 @@ static <C extends Component> Registration effect(C owner,
185180
* @return a {@link Registration} that can be used to remove the effect
186181
* function
187182
*/
188-
static <C extends Component> Registration effect(C owner,
183+
static Registration effect(Component owner,
189184
ContextualEffectAction effectFunction) {
190185
return ElementEffect.effect(owner.getElement(), effectFunction);
191186
}

0 commit comments

Comments
 (0)