public static String concernStackString ( BlockInfo blockInfo ) { String result = "" ; for ( String stackEntry : blockInfo . threadStackEntries ) { if ( Character . isLetter ( stackEntry . charAt ( 0 ) ) ) { String [ ] lines = stackEntry . split ( BlockInfo . SEPARATOR ) ; for ( String line : lines ) { String keyStackString = concernStackString ( line ) ; if ( keyStackString != null ) { return keyStackString ; } } return classSimpleName ( lines [ 0 ] ) ; } } return result ; }
Get key stack string to show as title in ui list .