@@ -1365,19 +1365,19 @@ Consider the following class definition:
1365
1365
@Transactional
1366
1366
public class DefaultFooService implements FooService {
1367
1367
1368
- Foo getFoo(String fooName) {
1368
+ public Foo getFoo(String fooName) {
1369
1369
// ...
1370
1370
}
1371
1371
1372
- Foo getFoo(String fooName, String barName) {
1372
+ public Foo getFoo(String fooName, String barName) {
1373
1373
// ...
1374
1374
}
1375
1375
1376
- void insertFoo(Foo foo) {
1376
+ public void insertFoo(Foo foo) {
1377
1377
// ...
1378
1378
}
1379
1379
1380
- void updateFoo(Foo foo) {
1380
+ public void updateFoo(Foo foo) {
1381
1381
// ...
1382
1382
}
1383
1383
}
@@ -1407,7 +1407,7 @@ Consider the following class definition:
1407
1407
}
1408
1408
----
1409
1409
1410
- Used at the class level as above, the annotation indicates a default for all methods
1410
+ Used at the class level as above, the annotation indicates a default for all public methods
1411
1411
of the declaring class (as well as its subclasses). Alternatively, each method can
1412
1412
get annotated individually. Note that a class-level annotation does not apply to
1413
1413
ancestor classes up the class hierarchy; in such a scenario, methods need to be
@@ -1471,19 +1471,19 @@ programming arrangements as the following listing shows:
1471
1471
@Transactional
1472
1472
public class DefaultFooService implements FooService {
1473
1473
1474
- Publisher<Foo> getFoo(String fooName) {
1474
+ public Publisher<Foo> getFoo(String fooName) {
1475
1475
// ...
1476
1476
}
1477
1477
1478
- Mono<Foo> getFoo(String fooName, String barName) {
1478
+ public Mono<Foo> getFoo(String fooName, String barName) {
1479
1479
// ...
1480
1480
}
1481
1481
1482
- Mono<Void> insertFoo(Foo foo) {
1482
+ public Mono<Void> insertFoo(Foo foo) {
1483
1483
// ...
1484
1484
}
1485
1485
1486
- Mono<Void> updateFoo(Foo foo) {
1486
+ public Mono<Void> updateFoo(Foo foo) {
1487
1487
// ...
1488
1488
}
1489
1489
}
0 commit comments