mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-23 17:31:16 +01:00
Merge 8117b5adbd452216502e72770784f5331c6567bd into fb54d8b54984f89f7dba90a18e7c3048421464c3
This commit is contained in:
commit
f803e0aad6
@ -200,10 +200,10 @@ public class FeatureUpdateController implements FeatureUpdateService.ServiceIfac
|
|||||||
}
|
}
|
||||||
|
|
||||||
private List<PenguinVersion> getPenguinVersions(String penguinVersionsStr) {
|
private List<PenguinVersion> getPenguinVersions(String penguinVersionsStr) {
|
||||||
String[] tokens = penguinVersionsStr.split("\\s*,\\s*");
|
String[] tokens = penguinVersionsStr.split(",");
|
||||||
List<PenguinVersion> listOfPenguinVersions = Lists.newArrayListWithCapacity(tokens.length);
|
List<PenguinVersion> listOfPenguinVersions = Lists.newArrayListWithCapacity(tokens.length);
|
||||||
for (String token : tokens) {
|
for (String token : tokens) {
|
||||||
listOfPenguinVersions.add(PenguinVersion.valueOf(token.toUpperCase()));
|
listOfPenguinVersions.add(PenguinVersion.valueOf(token.trim().toUpperCase()));
|
||||||
}
|
}
|
||||||
LOG.info(String.format("Using Penguin Versions: %s", listOfPenguinVersions));
|
LOG.info(String.format("Using Penguin Versions: %s", listOfPenguinVersions));
|
||||||
return listOfPenguinVersions;
|
return listOfPenguinVersions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user