@@ -1314,19 +1314,19 @@ Consider the following class definition:
1314
1314
@Transactional
1315
1315
public class DefaultFooService implements FooService {
1316
1316
1317
- Foo getFoo(String fooName) {
1317
+ public Foo getFoo(String fooName) {
1318
1318
// ...
1319
1319
}
1320
1320
1321
- Foo getFoo(String fooName, String barName) {
1321
+ public Foo getFoo(String fooName, String barName) {
1322
1322
// ...
1323
1323
}
1324
1324
1325
- void insertFoo(Foo foo) {
1325
+ public void insertFoo(Foo foo) {
1326
1326
// ...
1327
1327
}
1328
1328
1329
- void updateFoo(Foo foo) {
1329
+ public void updateFoo(Foo foo) {
1330
1330
// ...
1331
1331
}
1332
1332
}
@@ -1356,7 +1356,7 @@ Consider the following class definition:
1356
1356
}
1357
1357
----
1358
1358
1359
- Used at the class level as above, the annotation indicates a default for all methods
1359
+ Used at the class level as above, the annotation indicates a default for all public methods
1360
1360
of the declaring class (as well as its subclasses). Alternatively, each method can
1361
1361
get annotated individually. Note that a class-level annotation does not apply to
1362
1362
ancestor classes up the class hierarchy; in such a scenario, methods need to be
@@ -1420,19 +1420,19 @@ programming arrangements as the following listing shows:
1420
1420
@Transactional
1421
1421
public class DefaultFooService implements FooService {
1422
1422
1423
- Publisher<Foo> getFoo(String fooName) {
1423
+ public Publisher<Foo> getFoo(String fooName) {
1424
1424
// ...
1425
1425
}
1426
1426
1427
- Mono<Foo> getFoo(String fooName, String barName) {
1427
+ public Mono<Foo> getFoo(String fooName, String barName) {
1428
1428
// ...
1429
1429
}
1430
1430
1431
- Mono<Void> insertFoo(Foo foo) {
1431
+ public Mono<Void> insertFoo(Foo foo) {
1432
1432
// ...
1433
1433
}
1434
1434
1435
- Mono<Void> updateFoo(Foo foo) {
1435
+ public Mono<Void> updateFoo(Foo foo) {
1436
1436
// ...
1437
1437
}
1438
1438
}
0 commit comments