remove deprecated String subtype methods

This commit is contained in:
Ingmar Goudt 2019-01-03 06:35:36 +01:00
parent a995643512
commit e1630b3c6f
4 changed files with 5 additions and 42 deletions

View file

@ -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;
}

View file

@ -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));
}
}