Skip to content

Commit d03b370

Browse files
committed
Remove innerGetRaw.
innerGetRaw is not useful for record settings. Let's not pretend to implement it.
1 parent 50fd10b commit d03b370

File tree

1 file changed

+1
-10
lines changed
  • server/src/main/java/org/elasticsearch/common/settings

1 file changed

+1
-10
lines changed

server/src/main/java/org/elasticsearch/common/settings/Setting.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,16 +1350,7 @@ public boolean isGroupSetting() {
13501350

13511351
@Override
13521352
public String innerGetRaw(final Settings settings) {
1353-
Settings subSettings = settings.getByPrefix(getKey());
1354-
try {
1355-
XContentBuilder builder = XContentFactory.jsonBuilder();
1356-
builder.startObject();
1357-
subSettings.toXContent(builder, EMPTY_PARAMS);
1358-
builder.endObject();
1359-
return Strings.toString(builder);
1360-
} catch (IOException e) {
1361-
throw new RuntimeException(e);
1362-
}
1353+
throw new UnsupportedOperationException();
13631354
}
13641355

13651356
private Settings getByPrefix(Settings settings) {

0 commit comments

Comments
 (0)