checkPackagePrivate

public void checkPackagePrivate(String warningMessageFormat)

Checks that method access is package-private.

If the access is not package-private, prints the warning to the log with the specified warningMessageFormat.

warningMessageFormat should contain a placeholder for the method name.

Parameters

warningMessageFormat

a formatted String representing the warning message

See also