mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-15 06:22:49 +00:00
Make Database return a read-only list on getKeys()
Also move some stuff around
This commit is contained in:
parent
b3079dabc2
commit
4e10e5d514
6 changed files with 11 additions and 11 deletions
|
@ -4,6 +4,7 @@ import org.json.JSONArray;
|
|||
import org.json.JSONObject;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class Database {
|
||||
|
@ -49,6 +50,6 @@ public class Database {
|
|||
}
|
||||
|
||||
public List<DatabaseEntry> getKeys() {
|
||||
return _entries;
|
||||
return Collections.unmodifiableList(_entries);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue