Spacing and title fixes
This commit is contained in:
parent
5890994c68
commit
f6250421a7
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
layout: default
|
||||
title: OpenSearch Java high-level REST client
|
||||
title: Java high-level REST client
|
||||
nav_order: 60
|
||||
---
|
||||
|
||||
# OpenSearch Java high-level REST client
|
||||
# Java high-level REST client
|
||||
|
||||
Although the OpenSearch Java high-level REST client is still usable, we recommend that you use the [OpenSearch Java client]({{site.url}}{{site.baseurl}}/clients/java/), which replaces the existing Java high-level REST client.
|
||||
{: .note}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
layout: default
|
||||
title: OpenSearch Java client
|
||||
title: Java client
|
||||
nav_order: 65
|
||||
---
|
||||
|
||||
|
@ -152,14 +152,14 @@ public class OpenSearchClientExample {
|
|||
} catch (IOException e){
|
||||
System.out.println(e.toString());
|
||||
} finally {
|
||||
try {
|
||||
if (client != null) {
|
||||
client.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
System.out.println(e.toString());
|
||||
}
|
||||
}
|
||||
try {
|
||||
if (client != null) {
|
||||
client.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
System.out.println(e.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue