fragment:util: Added private constructor to hide the inherit public one

Utility classes, which are collections of static members, are not meant to be instantiated.

Java adds an implicit public constructor to every class which does not define at least one explicitly. Hence, at least one non-public constructor should be defined.
This commit is contained in:
eho 2018-06-09 23:06:12 +02:00
parent 9d963cec33
commit d5b500559e

View file

@ -39,6 +39,10 @@ import java.util.Date;
*/
public class FileDetailSharingFragmentHelper {
private FileDetailSharingFragmentHelper() {
// Private empty constructor
}
/**
* Sets checked/visiblity state on the given {@link MenuItem} based on the given criteria.
*