Polish "Start building against Spring Data 2022.0.0-M5 snapshots"
See gh-31582
This commit is contained in:
@@ -16,15 +16,15 @@
|
||||
|
||||
package org.springframework.boot.docs.data.nosql.elasticsearch.connectingusingspringdata;
|
||||
|
||||
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@SuppressWarnings("deprecation")
|
||||
public class MyBean {
|
||||
|
||||
private final ElasticsearchRestTemplate template;
|
||||
private final org.springframework.data.elasticsearch.client.erhlc.ElasticsearchRestTemplate template;
|
||||
|
||||
public MyBean(ElasticsearchRestTemplate template) {
|
||||
public MyBean(org.springframework.data.elasticsearch.client.erhlc.ElasticsearchRestTemplate template) {
|
||||
this.template = template;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
package org.springframework.boot.docs.data.nosql.elasticsearch.connectingusingspringdata
|
||||
|
||||
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate
|
||||
import org.springframework.stereotype.Component
|
||||
|
||||
@Component
|
||||
class MyBean(private val template: ElasticsearchRestTemplate) {
|
||||
@Suppress("DEPRECATION")
|
||||
class MyBean(private val template: org.springframework.data.elasticsearch.client.erhlc.ElasticsearchRestTemplate ) {
|
||||
|
||||
// @fold:on // ...
|
||||
fun someMethod(id: String): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user