mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 06:08:52 +00:00
AbstractHafasLegacyProvider: Use a bulk operation.
This commit is contained in:
parent
64c4b240fd
commit
0f8eaaead6
1 changed files with 2 additions and 2 deletions
|
@ -28,6 +28,7 @@ import java.io.InputStream;
|
|||
import java.io.InputStreamReader;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
|
@ -2984,8 +2985,7 @@ public abstract class AbstractHafasLegacyProvider extends AbstractHafasProvider
|
|||
comment);
|
||||
} else {
|
||||
final Set<Line.Attr> attrSet = new HashSet<>();
|
||||
for (final Line.Attr attr : attrs)
|
||||
attrSet.add(attr);
|
||||
attrSet.addAll(Arrays.asList(attrs));
|
||||
return new Line(null, network, product, normalizedName, lineStyle(network, product, normalizedName),
|
||||
attrSet, comment);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue