Skip to content

Commit 920bc58

Browse files
Merge pull request #109 from cisco-system-traffic-generator/google-format-version-update
google format version update
2 parents e4fca04 + 70e3a02 commit 920bc58

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ repositories {
3838
mavenCentral()
3939
}
4040

41+
googleJavaFormat {
42+
toolVersion = '1.7'
43+
}
44+
4145
dependencies {
4246
compile group: 'org.pcap4j', name: 'pcap4j-packetfactory-static', version:'1.7.7' //1.8.0+ requires java 9
4347
compile group: 'org.apache.commons', name: 'commons-lang3', version:'3.9'

src/e2e-test/java/com/cisco/trex/stateless/TRexClientTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,7 @@ private static EthernetPacket buildIdealPkt(String pkt) {
678678

679679
@AfterClass
680680
public static void tierDown() {
681-
client
682-
.getPorts()
683-
.stream()
681+
client.getPorts().stream()
684682
.forEach(
685683
port -> {
686684
client.stopTraffic(port.getIndex());
@@ -693,9 +691,7 @@ public static void tierDown() {
693691
@After
694692
public void tearDownMethod() {
695693
client.removeAllCaptures();
696-
client
697-
.getPorts()
698-
.stream()
694+
client.getPorts().stream()
699695
.forEach(
700696
port -> {
701697
client.stopTraffic(port.getIndex());

src/main/java/com/cisco/trex/stateless/IPv6NeighborDiscoveryService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ public Map<String, Ipv6Node> scan(int portIdx, int timeDuration, String dstIP, S
123123
icmpNAReplies.addAll(tRexClient.getRxQueue(portIdx, ipV6NAPktFilter));
124124
}
125125
tRexClient.removeRxQueue(portIdx);
126-
return icmpNAReplies
127-
.stream()
126+
return icmpNAReplies.stream()
128127
.map(this::toIpv6Node)
129128
.distinct()
130129
.filter(

0 commit comments

Comments
 (0)