Skip to content

Commit bcb255b

Browse files
committed
fix: modified what pointed out
1 parent e80f7b6 commit bcb255b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This package can be installed from [Maven Central Repository][mvn-url].
2424

2525
The examples of declaring that repository and the dependency on this package in Maven `pom.xml` and Gradle `build.gradle` are as follows:
2626

27-
### for Maven
27+
### For Maven
2828

2929
```
3030
<dependencies>
@@ -36,7 +36,7 @@ The examples of declaring that repository and the dependency on this package in
3636
</dependencies>
3737
```
3838

39-
### for Gradle
39+
### For Gradle
4040

4141
```
4242
repositories {
@@ -57,6 +57,7 @@ First, you'll define `DataSrc` which manages connections to external data servic
5757
import com.github.sttk.errs.Exc;
5858
import com.github.sttk.sabi.DataSrc;
5959
import com.github.sttk.sabi.DataConn;
60+
import com.github.sttk.sabi.AsyncGroup;
6061

6162
class FooDataSrc implements DataSrc {
6263
@Override public void setup(AsyncGroup ag) throws Exc {}
@@ -113,15 +114,15 @@ import com.github.sttk.errs.Exc;
113114
import com.github.sttk.sabi.DataAcc;
114115

115116
interface GettingDataAcc extends DataAcc, MyData {
116-
@Override public String getText() throws Exc {
117+
@Override default String getText() throws Exc {
117118
var conn = getDataConn("foo", FooDataConn.class);
118119
// ...
119120
return "output text";
120121
}
121122
}
122123

123124
interface SettingDataAcc extends DataAcc, MyData {
124-
@Override public void setText(String text) throws Exc {
125+
@Override default void setText(String text) throws Exc {
125126
var conn = getDataConn("bar", BarDataConn.class);
126127
// ...
127128
}

0 commit comments

Comments
 (0)