kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [kafka] branch trunk updated: MINOR: Fix broken Javadoc on [AbstractIndex|OffsetIndex] (#5370)
Date Wed, 18 Jul 2018 00:09:50 GMT
This is an automated email from the ASF dual-hosted git repository.

jgus pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 0c0ced7  MINOR: Fix broken Javadoc on [AbstractIndex|OffsetIndex] (#5370)
0c0ced7 is described below

commit 0c0ced770c45879d67b0e16878ddd36015aa3fd9
Author: Lee Dongjin <dongjin@apache.org>
AuthorDate: Wed Jul 18 09:09:45 2018 +0900

    MINOR: Fix broken Javadoc on [AbstractIndex|OffsetIndex] (#5370)
    
    In the javadoc of `AbstractIndex` and `OffsetIndex`, thrown `Exception`s are not imported.
---
 core/src/main/scala/kafka/log/AbstractIndex.scala | 2 +-
 core/src/main/scala/kafka/log/OffsetIndex.scala   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/src/main/scala/kafka/log/AbstractIndex.scala b/core/src/main/scala/kafka/log/AbstractIndex.scala
index d716a7c..e653802 100644
--- a/core/src/main/scala/kafka/log/AbstractIndex.scala
+++ b/core/src/main/scala/kafka/log/AbstractIndex.scala
@@ -17,7 +17,7 @@
 
 package kafka.log
 
-import java.io.{Closeable, File, RandomAccessFile}
+import java.io.{Closeable, File, IOException, RandomAccessFile}
 import java.nio.channels.FileChannel
 import java.nio.file.Files
 import java.nio.{ByteBuffer, MappedByteBuffer}
diff --git a/core/src/main/scala/kafka/log/OffsetIndex.scala b/core/src/main/scala/kafka/log/OffsetIndex.scala
index 6f246ee..23dabf7 100755
--- a/core/src/main/scala/kafka/log/OffsetIndex.scala
+++ b/core/src/main/scala/kafka/log/OffsetIndex.scala
@@ -20,6 +20,7 @@ package kafka.log
 import java.io.File
 import java.nio.ByteBuffer
 
+import kafka.common.IndexOffsetOverflowException
 import kafka.utils.CoreUtils.inLock
 import org.apache.kafka.common.errors.InvalidOffsetException
 


Mime
View raw message