Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
Update FileUtils.java
Browse files Browse the repository at this point in the history
Added private constructor to enforce Singleton pattern. Making the utils class static also saves memory, because no state will ever be held within it.
  • Loading branch information
cannonpalms committed Dec 13, 2013
1 parent ab51ef0 commit 926184e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
* @author paulburke (ipaulpro)
*/
public class FileUtils {
private FileUtils() {} //private constructor to enforce Singleton pattern

/** TAG for log messages. */
static final String TAG = "FileUtils";
private static final boolean DEBUG = false; // Set to true to enable logging
Expand Down

1 comment on commit 926184e

@barge63
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Takrn11
Hello I am new here .hello to everyonE

Please sign in to comment.