@@ -24,7 +24,7 @@ This package can be installed from [Maven Central Repository][mvn-url].
2424
2525The 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```
4242repositories {
@@ -57,6 +57,7 @@ First, you'll define `DataSrc` which manages connections to external data servic
5757import com.github.sttk.errs.Exc ;
5858import com.github.sttk.sabi.DataSrc ;
5959import com.github.sttk.sabi.DataConn ;
60+ import com.github.sttk.sabi.AsyncGroup ;
6061
6162class FooDataSrc implements DataSrc {
6263 @Override public void setup (AsyncGroup ag ) throws Exc {}
@@ -113,15 +114,15 @@ import com.github.sttk.errs.Exc;
113114import com.github.sttk.sabi.DataAcc ;
114115
115116interface 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
123124interface 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