codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/source/JavaPackageExtractor.java
@Override
    public String getPackage(final File sourceFile) {

        String aLine = getPackage(sourceFile, PACKAGE_STATEMENT);
        if (aLine != null) return aLine;

        // No package statement found.
        // Return default package.
        return "";
    }
@Override
    public String getPackage(final File sourceFile) {

        String aLine = getPackage(sourceFile, PACKAGE_STATEMENT);
        if (aLine != null) return aLine;

        // No package statement found.
        // Return default package.
        return "";
    }
Retrieves the package definition from the supplied sourceFile.

@param sourceFile The sourceFile from which the package definition should be extracted.
@return The package of the sourceFile.