Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22989#discussion_r233821654
  
    --- Diff: 
common/unsafe/src/main/java/org/apache/spark/unsafe/UnsafeAlignedOffset.java ---
    @@ -39,7 +39,9 @@ public static int getSize(Object object, long offset) {
           case 8:
             return (int)Platform.getLong(object, offset);
           default:
    +        // checkstyle.off: RegexpSinglelineJava
             throw new AssertionError("Illegal UAO_SIZE");
    --- End diff --
    
    yea, that's exactly the use case of `IllegalStateException`, which can also 
pass the style check here.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to