@ SuppressWarnings ( "squid:S2259" ) // potential multi-threading NPE public Package getRootPackage ( ) { Package aPackage = this ; while ( aPackage . getParent ( ) != null ) { aPackage = aPackage . getParent ( ) ; } return aPackage ; }
Get the root of this package or itself if this is a root package