8280122: SupportedGroupsExtension should output "named groups" rather than "versions"

Reviewed-by: weijun, xuelei
This commit is contained in:
John Jiang 2022-01-18 22:40:14 +00:00
parent 1a20628757
commit 3a421e4b78

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -112,7 +112,7 @@ final class SupportedGroupsExtension {
@Override
public String toString() {
MessageFormat messageFormat = new MessageFormat(
"\"versions\": '['{0}']'", Locale.ENGLISH);
"\"named groups\": '['{0}']'", Locale.ENGLISH);
if (namedGroupsIds == null || namedGroupsIds.length == 0) {
Object[] messageFields = {