Skip to content
Permalink
Browse files
fix!: initialize should be protected (#536)
* fix!: iniialize should be protected

* fix: fix clirr build error
  • Loading branch information
olavloite committed Oct 22, 2020
1 parent 1811f52 commit 5c4c8c58674490ba524b678b409b8b19184af02f
@@ -377,4 +377,21 @@
<className>com/google/cloud/spanner/AsyncTransactionManager</className>
<method>com.google.api.core.ApiFuture closeAsync()</method>
</difference>

<!-- Note: The following change for the LazySpannerInitializer.initialize() method must be specified twice, both with return type java.lang.Object and with com.google.cloud.spanner.Spanner. -->
<difference>
<differenceType>7009</differenceType>
<className>com/google/cloud/spanner/LazySpannerInitializer</className>
<method>com.google.cloud.spanner.Spanner initialize()</method>
</difference>
<difference>
<differenceType>7009</differenceType>
<className>com/google/cloud/spanner/LazySpannerInitializer</className>
<method>java.lang.Object initialize()</method>
</difference>
<difference>
<differenceType>7009</differenceType>
<className>com/google/cloud/spanner/AbstractLazyInitializer</className>
<method>java.lang.Object initialize()</method>
</difference>
</differences>
@@ -51,5 +51,5 @@ public T get() throws Exception {
* Initializes the actual object that should be returned. Is called once the first time an
* instance of T is required.
*/
public abstract T initialize() throws Exception;
protected abstract T initialize() throws Exception;
}
@@ -23,7 +23,7 @@ public class LazySpannerInitializer extends AbstractLazyInitializer<Spanner> {
* custom configuration.
*/
@Override
public Spanner initialize() throws Exception {
protected Spanner initialize() throws Exception {
return SpannerOptions.newBuilder().build().getService();
}
}

0 comments on commit 5c4c8c5

Please sign in to comment.