Skip to content

Commit 372ad36

Browse files
committed
Add javadoc.
1 parent 2a15018 commit 372ad36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/TestCustomizedCallbackHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232
import java.util.List;
3333
import java.util.concurrent.atomic.AtomicReference;
3434

35+
/** For testing {@link CustomizedCallbackHandler}. */
3536
public class TestCustomizedCallbackHandler {
36-
public static final Logger LOG = LoggerFactory.getLogger(TestCustomizedCallbackHandler.class);
37+
static final Logger LOG = LoggerFactory.getLogger(TestCustomizedCallbackHandler.class);
3738

3839
static final AtomicReference<List<Callback>> LAST_CALLBACKS = new AtomicReference<>();
3940

@@ -42,6 +43,7 @@ static void runHandleCallbacks(Object caller, List<Callback> callbacks, String n
4243
LAST_CALLBACKS.set(callbacks);
4344
}
4445

46+
/** Assert if the callbacks in {@link #LAST_CALLBACKS} are the same as the expected callbacks. */
4547
static void assertCallbacks(Callback[] expected) {
4648
final List<Callback> computed = LAST_CALLBACKS.getAndSet(null);
4749
Assert.assertNotNull(computed);

0 commit comments

Comments
 (0)