Skip to content

Commit 48ca108

Browse files
committed
a reformat code
1 parent e30d7c1 commit 48ca108

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

approvaltests-util-tests/src/test/java/com/spun/util/persistence/LoadersAndSaversExamplesTest.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,14 @@ private DataBase initializeDatabase()
145145
return null;
146146
}
147147
}
148-
149-
class Step4 {
148+
class Step4
149+
{
150150
// begin-snippet: step4
151151
public void sendOutSeniorDiscounts(DataBase database, MailServer mailServer)
152152
{
153153
Loader<List<Customer>> seniorCustomerLoader = database::getSeniorCustomers;
154154
sendOutSeniorDiscounts(mailServer, seniorCustomerLoader);
155155
}
156-
157156
public void sendOutSeniorDiscounts(MailServer mailServer, Loader<List<Customer>> seniorCustomerLoader)
158157
{
159158
List<Customer> seniorCustomers = seniorCustomerLoader.load();
@@ -166,15 +165,14 @@ public void sendOutSeniorDiscounts(MailServer mailServer, Loader<List<Customer>>
166165
}
167166
// end-snippet
168167
}
169-
170-
class Step4_a {
168+
class Step4_a
169+
{
171170
// begin-snippet: step4
172171
public void sendOutSeniorDiscounts(DataBase database, MailServer mailServer)
173172
{
174173
Loader<List<Customer>> seniorCustomerLoader = database::getSeniorCustomers;
175174
sendOutSeniorDiscounts(mailServer, seniorCustomerLoader); // *
176175
}
177-
178176
public void sendOutSeniorDiscounts(MailServer mailServer, Loader<List<Customer>> seniorCustomerLoader) // *
179177
{
180178
List<Customer> seniorCustomers = seniorCustomerLoader.load();
@@ -187,16 +185,17 @@ public void sendOutSeniorDiscounts(MailServer mailServer, Loader<List<Customer>>
187185
}
188186
// end-snippet
189187
}
190-
class Step4_b {
188+
class Step4_b
189+
{
191190
// begin-snippet: step4_b
192191
public void sendOutSeniorDiscounts(DataBase database, MailServer mailServer)
193192
{
194193
Loader<List<Customer>> seniorCustomerLoader = database::getSeniorCustomers;
195194
Saver<Tuple<Customer, String>> mailSaver = Saver2.create(mailServer::sendMessage); // +
196195
sendOutSeniorDiscounts(mailSaver, seniorCustomerLoader); // *
197196
}
198-
199-
public void sendOutSeniorDiscounts(Saver<Tuple<Customer, String>> mailSaver, Loader<List<Customer>> seniorCustomerLoader) // *
197+
public void sendOutSeniorDiscounts(Saver<Tuple<Customer, String>> mailSaver,
198+
Loader<List<Customer>> seniorCustomerLoader) // *
200199
{
201200
List<Customer> seniorCustomers = seniorCustomerLoader.load();
202201
for (Customer customer : seniorCustomers)
@@ -249,5 +248,4 @@ public String toString()
249248
private class Discount
250249
{
251250
}
252-
253251
}

0 commit comments

Comments
 (0)