Skip to content

Commit 2866608

Browse files
committed
ES-9508 Formatting changes
1 parent 6cb4239 commit 2866608

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/DataStreamDeprecationChecker.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ static DeprecationIssue ignoredOldIndicesCheck(DataStream dataStream, ClusterSta
116116
if (ignoredIndices.isEmpty() == false) {
117117
return new DeprecationIssue(
118118
DeprecationIssue.Level.WARNING,
119-
"Old data stream with a compatibility version < " + Version.CURRENT.major + "0.0 Has Been Ignored",
119+
"Old data stream with a compatibility version < " + Version.CURRENT.major + "0.0 Has Been Ignored",
120120
"https://ela.st/es-deprecation-ds-reindex",
121-
"This data stream has read only backing indices that were created before Elasticsearch " + Version.CURRENT.major
121+
"This data stream has read only backing indices that were created before Elasticsearch "
122+
+ Version.CURRENT.major
122123
+ "0.0 and have been marked as OK to remain read-only after upgrade",
123124
false,
124125
ofEntries(

x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/DataStreamDeprecationCheckerTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,10 @@ public void testOldIndicesIgnoredWarningCheck() {
285285

286286
DeprecationIssue expected = new DeprecationIssue(
287287
DeprecationIssue.Level.WARNING,
288-
"Old data stream with a compatibility version < " + Version.CURRENT.major + "0.0 Has Been Ignored",
288+
"Old data stream with a compatibility version < " + Version.CURRENT.major + "0.0 Has Been Ignored",
289289
"https://ela.st/es-deprecation-ds-reindex",
290-
"This data stream has read only backing indices that were created before Elasticsearch " + Version.CURRENT.major
290+
"This data stream has read only backing indices that were created before Elasticsearch "
291+
+ Version.CURRENT.major
291292
+ "0.0 and have been marked as OK to remain read-only after upgrade",
292293
false,
293294
ofEntries(

x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationCheckerTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,7 @@ public void testIndexDataPathSetting() {
505505
new DeprecationInfoAction.Request(TimeValue.THIRTY_SECONDS),
506506
emptyPrecomputedData
507507
);
508-
final String expectedUrl =
509-
"https://ela.st/es-deprecation-7-index-data-path";
508+
final String expectedUrl = "https://ela.st/es-deprecation-7-index-data-path";
510509
assertThat(
511510
issuesByIndex.get("test"),
512511
contains(

x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/NodeDeprecationChecksTests.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,7 @@ public void testCheckReservedPrefixedRealmNames() {
219219

220220
final DeprecationIssue deprecationIssue = deprecationIssues.get(0);
221221
assertEquals("Realm that start with [_] will not be permitted in a future major release.", deprecationIssue.getMessage());
222-
assertEquals(
223-
"https://ela.st/es-deprecation-7-realm-prefix",
224-
deprecationIssue.getUrl()
225-
);
222+
assertEquals("https://ela.st/es-deprecation-7-realm-prefix", deprecationIssue.getUrl());
226223
assertEquals(
227224
"Found realm "
228225
+ (invalidRealmNames.size() == 1 ? "name" : "names")

0 commit comments

Comments
 (0)