From 81223179df1c53b21e939840ae2d469d4a5666e6 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Tue, 8 Sep 2015 09:31:21 +0200 Subject: [PATCH] [doc] Java add missing breaking changes Closes #13151 --- .../migration/migrate_2_0/java.asciidoc | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/reference/migration/migrate_2_0/java.asciidoc b/docs/reference/migration/migrate_2_0/java.asciidoc index d5e9acf9a0a..f96d7904748 100644 --- a/docs/reference/migration/migrate_2_0/java.asciidoc +++ b/docs/reference/migration/migrate_2_0/java.asciidoc @@ -78,3 +78,36 @@ WrapperQueryBuilder internally. The `TermsQueryBuilder#execution` method has been removed as it has no effect, it is ignored by the corresponding parser. + +==== ImmutableSettings removed + +Use `Settings.builder()` instead of `ImmutableSettings.builder()`. + +==== InetSocketTransportAddress removed + +Use `InetSocketTransportAddress(InetSocketAddress address)` instead of `InetSocketTransportAddress(String, int)`. +You can create an InetSocketAddress instance with `InetSocketAddress(String, int)`. For example: + +[source,java] +----------------------------- +new InetSocketTransportAddress(new InetSocketAddress("127.0.0.1", 0)); +----------------------------- + +==== Shading and package relocation removed + +Elasticsearch used to shade its dependencies and to relocate packages. We no longer use shading or relocation. +You might need to change your imports to the original package names: + +* `com.google.common` was `org.elasticsearch.common` +* `com.carrotsearch.hppc` was `org.elasticsearch.common.hppc` +* `jsr166e` was `org.elasticsearch.common.util.concurrent.jsr166e` +* `com.fasterxml.jackson` was `org.elasticsearch.common.jackson` +* `org.joda.time` was `org.elasticsearch.common.joda.time` +* `org.joda.convert` was `org.elasticsearch.common.joda.convert` +* `org.jboss.netty` was `org.elasticsearch.common.netty` +* `com.ning.compress` was `org.elasticsearch.common.compress` +* `com.github.mustachejava` was `org.elasticsearch.common.mustache` +* `com.tdunning.math.stats` was `org.elasticsearch.common.stats` +* `org.apache.commons.lang` was `org.elasticsearch.common.lang` +* `org.apache.commons.cli` was `org.elasticsearch.common.cli.commons` +