/*
 * Copyright 2014-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.frontend.configuration.authentication;

import lombok.Data;

import java.io.Serializable;
import java.security.Principal;
import java.util.LinkedHashMap;
import java.util.Set;

@SuppressWarnings("WeakerAccess")
@Data
public class CommunityPrincipal implements Principal, Serializable {
    private static final long serialVersionUID = -8625590848187633506L;

    private final long id;
    private final String username;
    private final String securityInfo;
    private final Set<String> idolRoles;
    private final LinkedHashMap<String, String> fields;

    @Override
    public String getName() {
        return username;
    }
}

@@ -345,26 +345,16 @@
 va.util.
-LinkedHash
 Map;%0Aimp
@@ -719,18 +719,8 @@
 nal 
-LinkedHash
 Map%3C

Switch to Map type