mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
[minor] removed redundant finally block in CardRepository
This commit is contained in:
parent
01eee3995c
commit
e67620260c
1 changed files with 4 additions and 8 deletions
|
@ -132,9 +132,8 @@ public enum CardRepository {
|
||||||
setCodes.add(card.getSetCode());
|
setCodes.add(card.getSetCode());
|
||||||
}
|
}
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
} finally {
|
|
||||||
return setCodes;
|
|
||||||
}
|
}
|
||||||
|
return setCodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<String> getNames() {
|
public Set<String> getNames() {
|
||||||
|
@ -147,9 +146,8 @@ public enum CardRepository {
|
||||||
names.add(card.getName());
|
names.add(card.getName());
|
||||||
}
|
}
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
} finally {
|
|
||||||
return names;
|
|
||||||
}
|
}
|
||||||
|
return names;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<String> getNonLandNames() {
|
public Set<String> getNonLandNames() {
|
||||||
|
@ -163,9 +161,8 @@ public enum CardRepository {
|
||||||
names.add(card.getName());
|
names.add(card.getName());
|
||||||
}
|
}
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
} finally {
|
|
||||||
return names;
|
|
||||||
}
|
}
|
||||||
|
return names;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<String> getCreatureTypes() {
|
public Set<String> getCreatureTypes() {
|
||||||
|
@ -179,9 +176,8 @@ public enum CardRepository {
|
||||||
subtypes.addAll(card.getSubTypes());
|
subtypes.addAll(card.getSubTypes());
|
||||||
}
|
}
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
} finally {
|
|
||||||
return subtypes;
|
|
||||||
}
|
}
|
||||||
|
return subtypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CardInfo findCard(String setCode, int cardNumber) {
|
public CardInfo findCard(String setCode, int cardNumber) {
|
||||||
|
|
Loading…
Reference in a new issue