Spacing and title fixes

This commit is contained in:
keithhc2 2021-10-22 14:22:15 -07:00
parent 5890994c68
commit f6250421a7
2 changed files with 11 additions and 11 deletions

View File

@ -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}

View File

@ -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());
}
}
}
}
```