mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
remove deprecated String subtype methods
This commit is contained in:
parent
a995643512
commit
e1630b3c6f
4 changed files with 5 additions and 42 deletions
|
|
@ -301,7 +301,7 @@ public class CardInfo {
|
|||
return sl;
|
||||
}
|
||||
for (String s : subtypes.split(SEPARATOR)) {
|
||||
sl.add(s);
|
||||
sl.add(SubType.fromString(s));
|
||||
}
|
||||
return sl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,20 +20,6 @@ public class SubTypeList extends ArrayList<SubType> {
|
|||
Collections.addAll(this, subTypesList);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public boolean addAll(List<String> subtypes) {
|
||||
return addAll(subtypes.stream()
|
||||
.map(SubType::byDescription)
|
||||
.collect(Collectors.toList()));
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public boolean removeAll(List<String> subtypes) {
|
||||
return removeAll(subtypes.stream()
|
||||
.map(SubType::byDescription)
|
||||
.collect(Collectors.toList()));
|
||||
}
|
||||
|
||||
public boolean add(SubType... subTypes) {
|
||||
return Collections.addAll(this, subTypes);
|
||||
}
|
||||
|
|
@ -42,18 +28,4 @@ public class SubTypeList extends ArrayList<SubType> {
|
|||
return super.removeAll(Arrays.stream(subTypes)
|
||||
.collect(Collectors.toList()));
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public boolean add(String s) {
|
||||
SubType subType = SubType.byDescription(s);
|
||||
if (subType != null) {
|
||||
return add(subType);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public boolean contains(String s) {
|
||||
return contains(SubType.byDescription(s));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue