private void detectPackageName ( final Warning warning ) { if ( ! warning . hasPackageName ( ) ) { warning . setPackageName ( PackageDetectors . detectPackageName ( warning . getFileName ( ) ) ) ; } }
Detects the package name for the specified warning .