java-decompiler/jd-core

redundant exception catch variables

Opened this issue · 0 comments

It seems there are a lot of cases in try-catch blocks where there is a redundant exception variable created in the disassembly:

        } catch (SQLException var15) {
            SQLException sqex = var15;
            logger.log(Level.WARNING, this.name + " " + sqex.getMessage(), sqex);

should decompile as

        } catch (SQLException sqex) {
            logger.log(Level.WARNING, this.name + " " + sqex.getMessage(), sqex);