Android: Prevent instantiation of utility classes

This commit is contained in:
Lioncash 2014-11-14 13:21:14 -05:00
parent 4fe8bb1ca7
commit 5b1f734695
2 changed files with 10 additions and 0 deletions

View File

@ -53,6 +53,11 @@ public final class NativeLibrary
public static final int PRESSED = 1;
}
private NativeLibrary()
{
// Disallows instantiation.
}
/**
* Default touchscreen device
*/

View File

@ -21,6 +21,11 @@ import android.preference.PreferenceManager;
*/
public final class UserPreferences
{
private UserPreferences()
{
// Disallows instantiation.
}
/**
* Loads the settings stored in the Dolphin ini config files to the shared preferences of this front-end.
*