package org.wso2.carbon.apimgt.core.configuration.models;

import org.wso2.carbon.apimgt.core.util.APIMgtConstants;
import org.wso2.carbon.config.annotation.Configuration;
import org.wso2.carbon.config.annotation.Element;

import java.util.Collections;
import java.util.List;

/**
 * Class to hold Environment configurations
 */
@Configuration(description = "Environment Configurations")
public class EnvironmentConfigurations {
    @Element(description = "list of web clients (eg: 127.0.0.1:9292) allowed to make requests to the current environment\n" +
            "(use '" + APIMgtConstants.CORSAllowOriginConstants.ALLOW_ALL_ORIGINS + "' to allow any web client)")
    private List<String> allowedHosts = Collections.singletonList(
            APIMgtConstants.CORSAllowOriginConstants.ALLOW_ALL_ORIGINS);

    //Unique name for environment to set cookies by backend
    @Element(description = "current environment's label from the list of environments")
    private String environmentLabel = "Default";

    public List<String> getAllowedHosts() {
        return allowedHosts;
    }

    public void setAllowedHosts(List<String> allowedHosts) {
        this.allowedHosts = allowedHosts;
    }

    public String getEnvironmentLabel() {
        return environmentLabel;
    }

    public void setEnvironmentLabel(String environmentLabel) {
        this.environmentLabel = environmentLabel;
    }
}

package org.wso2.carbon.apimgt.core.configuration.models;

import org.wso2.carbon.apimgt.core.util.APIMgtConstants;
import org.wso2.carbon.config.annotation.Configuration;
import org.wso2.carbon.config.annotation.Element;

import java.util.Collections;
import java.util.List;

/**
 * Class to hold Environment configurations
 */
@Configuration(description = "Environment Configurations")
public class EnvironmentConfigurations {
    @Element(description = "list of web clients (eg: 127.0.0.1:9292) to allow make requests"
            + "to current environment\n(use '" + APIMgtConstants.CORSAllowOriginConstants.ALLOW_ALL_ORIGINS +
            "' to allow any web client)")
    private List<String> allowedHosts = Collections.singletonList(
            APIMgtConstants.CORSAllowOriginConstants.ALLOW_ALL_ORIGINS);

    //Unique name for environment to set cookies by backend
    @Element(description = "current environment's label from the list of environments")
    private String environmentLabel = "Default";

    public List<String> getAllowedHosts() {
        return allowedHosts;
    }

    public void setAllowedHosts(List<String> allowedHosts) {
        this.allowedHosts = allowedHosts;
    }

    public String getEnvironmentLabel() {
        return environmentLabel;
    }

    public void setEnvironmentLabel(String environmentLabel) {
        this.environmentLabel = environmentLabel;
    }
}

Fix check style issue exceeding no of chars in one line
Fix check style issue exceeding no of chars in one line
