Skip to content

Commit 529481c

Browse files
committed
Polish contribution
See gh-29150
1 parent 35d379f commit 529481c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spring-core/src/main/java/org/springframework/util/concurrent/SettableListenableFuture.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -114,7 +114,8 @@ public boolean isDone() {
114114
* {@link java.util.concurrent.CancellationException} if the future has been cancelled.
115115
* @return the value associated with this future
116116
*/
117-
@Override @Nullable
117+
@Nullable
118+
@Override
118119
public T get() throws InterruptedException, ExecutionException {
119120
return this.settableTask.get();
120121
}
@@ -129,6 +130,7 @@ public T get() throws InterruptedException, ExecutionException {
129130
* @param unit the unit of the timeout argument
130131
* @return the value associated with this future
131132
*/
133+
@Nullable
132134
@Override
133135
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
134136
return this.settableTask.get(timeout, unit);

0 commit comments

Comments
 (0)