Created
February 23, 2021 11:34
-
-
Save itang/e33f2722732f92d2465ff1d7e8bed240 to your computer and use it in GitHub Desktop.
Revisions
-
itang created this gist
Feb 23, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ private def print_type_tree(clazz: Class[?], level: Int = 0): Unit = if clazz != null then println((" " * level) + clazz) val nextLevel = level + 2 clazz.getInterfaces.foreach(it => print_type_tree(it, nextLevel)) print_type_tree(clazz.getSuperclass, nextLevel)