File tree Expand file tree Collapse file tree
server/src/main/java/org/apache/kafka/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public class FetchSession {
9090
9191 static String partitionsToLogString (Collection <TopicIdPartition > partitions , boolean traceEnabled ) {
9292 return traceEnabled
93- ? "(" + String . join ( ", " , partitions .toString ()) + ")"
93+ ? partitions .toString ()
9494 : partitions .size () + " partition(s)" ;
9595 }
9696
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ Meter evictionsMeter() {
118118 * Get a session by session ID.
119119 *
120120 * @param sessionId The session ID.
121- * @return The session, or None if no such session was found.
121+ * @return The session, or an empty Optional if no such session was found.
122122 */
123123 synchronized Optional <FetchSession > get (int sessionId ) {
124124 return Optional .ofNullable (sessions .get (sessionId ));
@@ -243,7 +243,7 @@ synchronized Optional<FetchSession> remove(int sessionId) {
243243 *
244244 * @param session The session.
245245 *
246- * @return The removed session, or None if there was no such session.
246+ * @return The removed session, or an empty Optional if there was no such session.
247247 */
248248 synchronized Optional <FetchSession > remove (FetchSession session ) {
249249 EvictableKey evictableKey ;
You can’t perform that action at this time.
0 commit comments