From 4d9356e185b7c209bc65b47c3e4cab0c9230339b Mon Sep 17 00:00:00 2001 From: "Daniel Doubrovkine (dB.)" Date: Wed, 5 May 2021 16:39:49 -0400 Subject: [PATCH] Fix #649: Properly escape @ in JavaDoc. (#651) Signed-off-by: dblock --- .../main/java/org/opensearch/plugins/AnalysisPlugin.java | 6 +++--- .../main/java/org/opensearch/plugins/DiscoveryPlugin.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/main/java/org/opensearch/plugins/AnalysisPlugin.java b/server/src/main/java/org/opensearch/plugins/AnalysisPlugin.java index 829af87bc4e..8022129df36 100644 --- a/server/src/main/java/org/opensearch/plugins/AnalysisPlugin.java +++ b/server/src/main/java/org/opensearch/plugins/AnalysisPlugin.java @@ -60,14 +60,14 @@ import static java.util.Collections.emptyMap; * An additional extension point for {@link Plugin}s that extends OpenSearch's analysis functionality. To add an additional * {@link TokenFilter} just implement the interface and implement the {@link #getTokenFilters()} method: * - *
{@code
+ * 
  * public class AnalysisPhoneticPlugin extends Plugin implements AnalysisPlugin {
  *     @Override
- *     public Map> getTokenFilters() {
+ *     public Map<String, AnalysisProvider<TokenFilterFactory>> getTokenFilters() {
  *         return singletonMap("phonetic", PhoneticTokenFilterFactory::new);
  *     }
  * }
- * }
+ *
* * OpenSearch doesn't have any automatic mechanism to share these components between indexes. If any component is heavy enough to warrant * such sharing then it is the Plugin's responsibility to do it in their {@link AnalysisProvider} implementation. We recommend against doing diff --git a/server/src/main/java/org/opensearch/plugins/DiscoveryPlugin.java b/server/src/main/java/org/opensearch/plugins/DiscoveryPlugin.java index f2e35b3cff7..1a71d8b82aa 100644 --- a/server/src/main/java/org/opensearch/plugins/DiscoveryPlugin.java +++ b/server/src/main/java/org/opensearch/plugins/DiscoveryPlugin.java @@ -49,14 +49,14 @@ import java.util.function.Supplier; * An additional extension point for {@link Plugin}s that extends OpenSearch's discovery functionality. To add an additional * {@link NetworkService.CustomNameResolver} just implement the interface and implement the {@link #getCustomNameResolver(Settings)} method: * - *
{@code
+ * 
  * public class MyDiscoveryPlugin extends Plugin implements DiscoveryPlugin {
  *     @Override
  *     public NetworkService.CustomNameResolver getCustomNameResolver(Settings settings) {
  *         return new YourCustomNameResolverInstance(settings);
  *     }
  * }
- * }
+ *
*/ public interface DiscoveryPlugin {