Skip to content

Commit 3992411

Browse files
committed
[Java]: Formatting.
1 parent 18e200a commit 3992411

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed

examples/java/uk/co/real_logic/sbe/examples/ExampleUsingGeneratedStub.java

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,26 +119,33 @@ public static int encode(final Car car, final DirectBuffer directBuffer, final i
119119
car.someNumbers(i, i);
120120
}
121121

122-
car.extras().clear()
122+
car.extras()
123+
.clear()
123124
.cruiseControl(true)
124125
.sportsPack(true)
125126
.sunRoof(false);
126127

127-
car.engine().capacity(2000)
128+
car.engine()
129+
.capacity(2000)
128130
.numCylinders((short)4)
129131
.putManufacturerCode(MANUFACTURER_CODE, srcOffset);
130132

131-
car.fuelFiguresCount(3).next().speed(30).mpg(35.9f)
133+
car.fuelFiguresCount(3)
134+
.next().speed(30).mpg(35.9f)
132135
.next().speed(55).mpg(49.0f)
133136
.next().speed(75).mpg(40.0f);
134137

135138
final Car.PerformanceFigures perfFigures = car.performanceFiguresCount(2);
136-
perfFigures.next().octaneRating((short)95)
137-
.accelerationCount(3).next().mph(30).seconds(4.0f)
139+
perfFigures.next()
140+
.octaneRating((short)95)
141+
.accelerationCount(3)
142+
.next().mph(30).seconds(4.0f)
138143
.next().mph(60).seconds(7.5f)
139144
.next().mph(100).seconds(12.2f);
140-
perfFigures.next().octaneRating((short)99)
141-
.accelerationCount(3).next().mph(30).seconds(3.8f)
145+
perfFigures.next()
146+
.octaneRating((short)99)
147+
.accelerationCount(3)
148+
.next().mph(30).seconds(3.8f)
142149
.next().mph(60).seconds(7.1f)
143150
.next().mph(100).seconds(11.8f);
144151

examples/java/uk/co/real_logic/sbe/examples/ExampleUsingGeneratedStubExtension.java

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,26 +120,33 @@ public static int encode(final baseline.Car car, final DirectBuffer directBuffer
120120
car.someNumbers(i, i);
121121
}
122122

123-
car.extras().clear()
123+
car.extras()
124+
.clear()
124125
.cruiseControl(true)
125126
.sportsPack(true)
126127
.sunRoof(false);
127128

128-
car.engine().capacity(2000)
129+
car.engine()
130+
.capacity(2000)
129131
.numCylinders((short)4)
130132
.putManufacturerCode(MANUFACTURER_CODE, srcOffset);
131133

132-
car.fuelFiguresCount(3).next().speed(30).mpg(35.9f)
134+
car.fuelFiguresCount(3)
135+
.next().speed(30).mpg(35.9f)
133136
.next().speed(55).mpg(49.0f)
134137
.next().speed(75).mpg(40.0f);
135138

136139
final baseline.Car.PerformanceFigures perfFigures = car.performanceFiguresCount(2);
137-
perfFigures.next().octaneRating((short)95)
138-
.accelerationCount(3).next().mph(30).seconds(4.0f)
140+
perfFigures.next()
141+
.octaneRating((short)95)
142+
.accelerationCount(3)
143+
.next().mph(30).seconds(4.0f)
139144
.next().mph(60).seconds(7.5f)
140145
.next().mph(100).seconds(12.2f);
141-
perfFigures.next().octaneRating((short)99)
142-
.accelerationCount(3).next().mph(30).seconds(3.8f)
146+
perfFigures.next()
147+
.octaneRating((short)99)
148+
.accelerationCount(3)
149+
.next().mph(30).seconds(3.8f)
143150
.next().mph(60).seconds(7.1f)
144151
.next().mph(100).seconds(11.8f);
145152

0 commit comments

Comments
 (0)