mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 08:28:57 +00:00
Made some inner classes static (For Efficiency)
(and made one explicitly private) Closes #3932 // FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
d0fc5268a6
commit
99adbe5784
@@ -142,7 +142,7 @@ public class IdentityDatabase extends Database {
|
||||
}
|
||||
}
|
||||
|
||||
public class Identity {
|
||||
public static class Identity {
|
||||
private final Recipients recipients;
|
||||
private final IdentityKey identityKey;
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ public class TextSecureDirectory {
|
||||
}
|
||||
}
|
||||
|
||||
private class DatabaseHelper extends SQLiteOpenHelper {
|
||||
private static class DatabaseHelper extends SQLiteOpenHelper {
|
||||
|
||||
public DatabaseHelper(Context context, String name,
|
||||
SQLiteDatabase.CursorFactory factory,
|
||||
|
||||
@@ -38,7 +38,7 @@ public class CountryListLoader extends AsyncTaskLoader<ArrayList<Map<String, Str
|
||||
return results;
|
||||
}
|
||||
|
||||
private class RegionComparator implements Comparator<Map<String, String>> {
|
||||
private static class RegionComparator implements Comparator<Map<String, String>> {
|
||||
@Override
|
||||
public int compare(Map<String, String> lhs, Map<String, String> rhs) {
|
||||
return lhs.get("country_name").compareTo(rhs.get("country_name"));
|
||||
|
||||
Reference in New Issue
Block a user