Skip to content

Commit d763dd6

Browse files
author
Tilmann Zäschke
committed
0.6.0!!! = broken
1 parent 3a4d249 commit d763dd6

File tree

8 files changed

+444
-288
lines changed

8 files changed

+444
-288
lines changed

src/main/java/org/scion/jpan/PathHelper.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@
1515
package org.scion.jpan;
1616

1717
import com.google.protobuf.ByteString;
18-
import org.scion.jpan.proto.daemon.Daemon;
19-
2018
import java.net.InetAddress;
2119
import java.net.UnknownHostException;
2220
import java.util.ArrayList;
2321
import java.util.List;
22+
import org.scion.jpan.proto.daemon.Daemon;
2423

2524
public class PathHelper {
2625

26+
private PathHelper() {}
27+
2728
public static List<Path> createPaths(int n) {
2829
List<Path> paths = new ArrayList<>();
2930
for (int i = 0; i < n; i++) {
3031
Daemon.Path.Builder builder = Daemon.Path.newBuilder();
31-
builder.setRaw(ByteString.copyFrom(new byte[]{}));
32+
builder.setRaw(ByteString.copyFrom(new byte[] {}));
3233
try {
33-
InetAddress dst = InetAddress.getByAddress(new byte[]{123, 123, 123, 123});
34+
InetAddress dst = InetAddress.getByAddress(new byte[] {123, 123, 123, 123});
3435
paths.add(RequestPath.create(builder.build(), n + 1, dst, 12345));
3536
} catch (UnknownHostException e) {
3637
throw new ScionRuntimeException("Unable to create test path", e);
3738
}
3839
}
3940
return paths;
4041
}
41-
4242
}

0 commit comments

Comments
 (0)