/*
 * Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

package com.hp.autonomy.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

/**
 * A username with a uid and a list of roles
 */
@SuppressWarnings({"WeakerAccess", "JavaDoc", "unused"})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRoles implements Serializable {

    private static final long serialVersionUID = 7516101375412437377L;

    /**
     * @serial The name of the user
     */
    private String username;

    /**
     * @serial The uid of the user
     */
    private long uid;

    /**
     * @serial The user security string to add to requests (unescaped)
     */
    private String securityInfo;

    /**
     * @serial The list of the user's roles
     */
    @SuppressWarnings("FieldMayBeFinal")
    private List<String> roles = new ArrayList<>();

    /**
     * @serial The map of user properties
     */
    @SuppressWarnings("FieldMayBeFinal")
    private LinkedHashMap<String, String> fields = new LinkedHashMap<>();

    public UserRoles(final String username){
        this.username = username;
    }
}
@@ -209,24 +209,46 @@
 nomy.user;%0A%0A
+import java.util.Map;%0A
 import lombo
@@ -1255,26 +1255,16 @@
 private 
-LinkedHash
 Map%3CStri

Switch to Map type