!868 几个小优化

Merge pull request !868 from emptypoint/几个小优化
This commit is contained in:
Looly
2022-11-16 17:13:18 +00:00
committed by Gitee
4 changed files with 15 additions and 11 deletions

View File

@@ -147,7 +147,7 @@ public class GraphTest {
Assert.assertEquals(asSet(2, 0), graph.getAdjacentPoints(3));
}
@SafeVarargs
private static <T> Set<T> asSet(T... ts) {
return new LinkedHashSet<>(Arrays.asList(ts));
}