Hi,

While fixing $Subject, noticed that we are doing two map operations in some
of the functions in AutoscalerContext. For example,

public ApplicationContext getApplicationContext(String applicationId) {
    if(applicationContextMap.containsKey(applicationId)) {
        return applicationContextMap.get(applicationId);
    }
    return null;
}

We should simply return map.get(key). It will do the needful.

I will fix these together.

Thanks.

On Mon, Jan 5, 2015 at 3:11 PM, Rajkumar Rajaratnam <rajkum...@wso2.com>
wrote:

> Hi Devs,
>
> $Subject in master branch. Should throw and propagate an exception to the
> caller.
>
> I will fix it.
>
> Thanks.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>



-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com

Reply via email to