MINOR: remove unnecessary null check
Author: Matthias J. Sax
Reviewers: Guozhang Wang
Closes from mjsax/minor-remove-null-check
@@ -64,9 +64,6 @@ class StringEncoder(props: VerifiableProperties = null) extends Encoder[String]
*/
class LongEncoder(props: VerifiableProperties = null) extends Encoder[Long] {
override def toBytes(l: Long): Array[Byte] =
- if(l == null)
- null
- else
ByteBuffer.allocate(8).putLong(l).array()
}
