Commit 19da8d82 authored by Madhura Bhave's avatar Madhura Bhave

Fix UnsupportedOperationException

Fixes gh-8602
parent 2ddcf0e8
......@@ -17,7 +17,9 @@
package org.springframework.boot.actuate.autoconfigure;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import javax.servlet.http.HttpSession;
......@@ -168,7 +170,7 @@ public class ManagementServerProperties implements SecurityPrerequisite {
/**
* Comma-separated list of roles that can access the management endpoint.
*/
private List<String> roles = Arrays.asList("ADMIN");
private List<String> roles = new ArrayList<String>(Collections.singletonList("ADMIN"));
/**
* Session creating policy for security use (always, never, if_required,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment