diff --git a/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/db/BackupMap.java b/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/db/BackupMap.java index 0f10f8eb..3647f511 100644 --- a/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/db/BackupMap.java +++ b/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/db/BackupMap.java @@ -4,7 +4,7 @@ import org.telegram.abilitybots.api.util.Pair; import java.util.*; -public class BackupMap extends AbstractCollection> implements Collection> { +final class BackupMap extends AbstractCollection> implements Collection> { private Collection> entries = new HashSet<>(); public BackupMap(){} diff --git a/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/db/MapDBContext.java b/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/db/MapDBContext.java index b6420fea..781d5b87 100644 --- a/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/db/MapDBContext.java +++ b/telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/db/MapDBContext.java @@ -198,7 +198,7 @@ public class MapDBContext implements DBContext { Set entrySet = (Set) value; getSet(name).addAll(entrySet); } else if (value instanceof BackupMap) { - Map entryMap = ((BackupMap)value).toMap(); + Map entryMap = ((BackupMap) value).toMap(); getMap(name).putAll(entryMap); } else if (value instanceof List) { List entryList = (List) value;