mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
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:
parent
9d963cec33
commit
d5b500559e
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue