Skip to content

Commit 5db0275

Browse files
qweekyschimke
authored andcommitted
Type parameter 'T' hides type parameter 'T' (#391)
Type parameters being named identically to visible types in the current scope
1 parent ae2f680 commit 5db0275

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rsocket-core/src/main/java/io/rsocket/internal/LimitableRequestPublisher.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void subscribe(CoreSubscriber<? super T> destination) {
5959
}
6060

6161
destination.onSubscribe(new InnerSubscription());
62-
source.subscribe(new InnerSubscriber<>(destination));
62+
source.subscribe(new InnerSubscriber(destination));
6363
}
6464

6565
public void increaseRequestLimit(long n) {
@@ -100,10 +100,10 @@ public void cancel() {
100100
}
101101
}
102102

103-
private class InnerSubscriber<T> implements Subscriber<T> {
103+
private class InnerSubscriber implements Subscriber<T> {
104104
Subscriber<? super T> destination;
105105

106-
public InnerSubscriber(Subscriber<? super T> destination) {
106+
private InnerSubscriber(Subscriber<? super T> destination) {
107107
this.destination = destination;
108108
}
109109

0 commit comments

Comments
 (0)