Skip to content

Commit

Permalink
Fixing a scalastyle error - line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
mccheah committed Mar 12, 2015
1 parent 5d53c4c commit cb67ce2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/scala/org/apache/spark/util/CastedArray.scala
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ object CastedArray {
override def get(i: Int): Object = arr(i)
override def getLength(): Int = arr.length
override def isPrimitiveArray(): Boolean = false
override def getElementSize(): Int = throw new UnsupportedOperationException("Cannot introspect " +
" the size of an element in an object array.")
override def getElementSize(): Int = {
throw new UnsupportedOperationException("Cannot introspect " +
" the size of an element in an object array.")
}
}

private class ShortCastedArray(val arr: Array[Short]) extends AnyVal with CastedArray {
Expand Down

0 comments on commit cb67ce2

Please sign in to comment.