Suppressing DLS_DEAD_LOCAL_STORE

2010-03-30
2013-02-05
  • Robert Miles
    Robert Miles
    2010-03-30

    Hi,

    I'm trying to suppress a warning given by FindBugs. It is complaining that I never use a variable (mkv) after it is created which is true but in this scenario it is fine. However, I can't seem to get it to suppress this warning. I'm currently doing:

    try {
        @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="DLS_DEAD_LOCAL_STORE", justification="Main MKV object")
        @SuppressWarnings("unused")
        Mkv mkv = Mkv.start(qos);
    }

    I've been able to suppress other "bugs" using these annotations. Is there something  I am doing wrong?

    Thanks,
    Rob