JustCode don't mark code as bad

2 posts, 1 answers
  1. Michał
    Michał avatar
    6 posts
    Member since:
    Apr 2009

    Posted 16 May 2011 Link to this post

    JustCode don't mark this as bad code:
    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        if (value == null)
        {
            if (targetType is Nullable<int>) // this is bad code
            {
                return null;
            }
            return -1;
        }
        return value;
    }
  2. Answer
    Dennis :: Dr. Code
    Admin
    Dennis :: Dr. Code avatar
    22 posts

    Posted 24 May 2011 Link to this post

    Hi Michał,

    Thanks for reporting. This is a bad-code-green analysis bug. I've logged that for fixing. Also gave you some Telerik points. 

    Greetings,
    Dennis :: Dr. Code
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top