1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-16 12:12:06 +01:00

Remove unnecessary try/catch blocks in DirectoryRosterStore

This commit is contained in:
Florian Schmaus 2014-04-23 09:31:52 +02:00
parent 4e43292f1d
commit cf6076ce43

View file

@ -156,25 +156,14 @@ public class DirectoryRosterStore implements RosterStore {
@Override
public boolean removeEntry(String bareJid, String version) {
try {
return getBareJidFile(bareJid).delete() && setRosterVersion(version);
}
catch (SecurityException e) {
e.printStackTrace();
return false;
}
}
@Override
public boolean resetEntries(Collection<Item> items, String version) {
try {
for (File file : fileDir.listFiles(rosterDirFilter)) {
file.delete();
}
} catch (SecurityException e) {
e.printStackTrace();
return false;
}
for (Item item : items) {
if (!addEntryRaw(item)) {
return false;