diff options
Diffstat (limited to 'core/src/main/java/org/elasticsearch/common')
8 files changed, 10 insertions, 10 deletions
diff --git a/core/src/main/java/org/elasticsearch/common/geo/GeoUtils.java b/core/src/main/java/org/elasticsearch/common/geo/GeoUtils.java index 6e4033efd4..81215906a0 100644 --- a/core/src/main/java/org/elasticsearch/common/geo/GeoUtils.java +++ b/core/src/main/java/org/elasticsearch/common/geo/GeoUtils.java @@ -481,7 +481,7 @@ public class GeoUtils { /** * Return the distance (in meters) between 2 lat,lon geo points using a simple tangential plane - * this provides a faster alternative to {@link GeoUtils#arcDistance} but is innaccurate for distances greater than + * this provides a faster alternative to {@link GeoUtils#arcDistance} but is inaccurate for distances greater than * 4 decimal degrees */ public static double planeDistance(double lat1, double lon1, double lat2, double lon2) { diff --git a/core/src/main/java/org/elasticsearch/common/inject/Binder.java b/core/src/main/java/org/elasticsearch/common/inject/Binder.java index 437591b8c5..2a4799cefc 100644 --- a/core/src/main/java/org/elasticsearch/common/inject/Binder.java +++ b/core/src/main/java/org/elasticsearch/common/inject/Binder.java @@ -138,7 +138,7 @@ import java.lang.annotation.Annotation; * bindConstant().annotatedWith(ServerHost.class).to(args[0]);</pre> * * Sets up a constant binding. Constant injections must always be annotated. - * When a constant binding's value is a string, it is eligile for conversion to + * When a constant binding's value is a string, it is eligible for conversion to * all primitive types, to {@link Enum#valueOf all enums}, and to * {@link Class#forName class literals}. Conversions for other types can be * configured using {@link #convertToTypes(Matcher, TypeConverter) diff --git a/core/src/main/java/org/elasticsearch/common/inject/TypeLiteral.java b/core/src/main/java/org/elasticsearch/common/inject/TypeLiteral.java index 32494cc4cd..b3d5c475d1 100644 --- a/core/src/main/java/org/elasticsearch/common/inject/TypeLiteral.java +++ b/core/src/main/java/org/elasticsearch/common/inject/TypeLiteral.java @@ -47,7 +47,7 @@ import static org.elasticsearch.common.inject.internal.MoreTypes.canonicalize; * <p> * This syntax cannot be used to create type literals that have wildcard * parameters, such as {@code Class<?>} or {@code List<? extends CharSequence>}. - * Such type literals must be constructed programatically, either by {@link + * Such type literals must be constructed programmatically, either by {@link * Method#getGenericReturnType extracting types from members} or by using the * {@link Types} factory class. * <p> diff --git a/core/src/main/java/org/elasticsearch/common/inject/internal/Errors.java b/core/src/main/java/org/elasticsearch/common/inject/internal/Errors.java index 24a2b4b79e..472eb42548 100644 --- a/core/src/main/java/org/elasticsearch/common/inject/internal/Errors.java +++ b/core/src/main/java/org/elasticsearch/common/inject/internal/Errors.java @@ -59,7 +59,7 @@ import static java.util.Collections.unmodifiableList; * returned instance will contain full context. * <p> * To avoid messages with redundant context, {@link #withSource} should be added sparingly. A - * good rule of thumb is to assume a ethod's caller has already specified enough context to + * good rule of thumb is to assume a method's caller has already specified enough context to * identify that method. When calling a method that's defined in a different context, call that * method with an errors object that includes its context. * diff --git a/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java b/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java index 2a539a8498..bbcea3041f 100644 --- a/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java +++ b/core/src/main/java/org/elasticsearch/common/lucene/Lucene.java @@ -712,7 +712,7 @@ public class Lucene { } /** - * Parses the version string lenient and returns the default value if the given string is null or emtpy + * Parses the version string lenient and returns the default value if the given string is null or empty */ public static Version parseVersionLenient(String toParse, Version defaultValue) { return LenientParser.parse(toParse, defaultValue); diff --git a/core/src/main/java/org/elasticsearch/common/network/NetworkUtils.java b/core/src/main/java/org/elasticsearch/common/network/NetworkUtils.java index 9e06c39b83..57bf97f423 100644 --- a/core/src/main/java/org/elasticsearch/common/network/NetworkUtils.java +++ b/core/src/main/java/org/elasticsearch/common/network/NetworkUtils.java @@ -40,7 +40,7 @@ import java.util.Optional; */ public abstract class NetworkUtils { - /** no instantation */ + /** no instantiation */ private NetworkUtils() {} /** diff --git a/core/src/main/java/org/elasticsearch/common/xcontent/NamedXContentRegistry.java b/core/src/main/java/org/elasticsearch/common/xcontent/NamedXContentRegistry.java index a565f1a325..37ecc579e3 100644 --- a/core/src/main/java/org/elasticsearch/common/xcontent/NamedXContentRegistry.java +++ b/core/src/main/java/org/elasticsearch/common/xcontent/NamedXContentRegistry.java @@ -42,9 +42,9 @@ public class NamedXContentRegistry { /** * The empty {@link NamedXContentRegistry} for use when you are sure that you aren't going to call * {@link XContentParser#namedObject(Class, String, Object)}. Be *very* careful with this singleton because a parser using it will fail - * every call to {@linkplain XContentParser#namedObject(Class, String, Object)}. Every non-test usage really should be checked thorowly - * and marked with a comment about how it was checked. That way anyone that sees code that uses it knows that it is potentially - * dangerous. + * every call to {@linkplain XContentParser#namedObject(Class, String, Object)}. Every non-test usage really should be checked + * thoroughly and marked with a comment about how it was checked. That way anyone that sees code that uses it knows that it is + * potentially dangerous. */ public static final NamedXContentRegistry EMPTY = new NamedXContentRegistry(emptyList()); diff --git a/core/src/main/java/org/elasticsearch/common/xcontent/XContentHelper.java b/core/src/main/java/org/elasticsearch/common/xcontent/XContentHelper.java index dd7508280d..968ad8ac6b 100644 --- a/core/src/main/java/org/elasticsearch/common/xcontent/XContentHelper.java +++ b/core/src/main/java/org/elasticsearch/common/xcontent/XContentHelper.java @@ -221,7 +221,7 @@ public class XContentHelper { /** * Updates the provided changes into the source. If the key exists in the changes, it overrides the one in source - * unless both are Maps, in which case it recuersively updated it. + * unless both are Maps, in which case it recursively updated it. * * @param source the original map to be updated * @param changes the changes to update into updated |