Sunday, 13 August 2017

More WTF! ~ foundjava

1
2
3
4
5
6
7
if (true)
{
    if (externalCreditDeposit == 0)
        creditDeposit = internalCreditDeposit;
    else
        creditDeposit = intWeight * internalCreditDeposit + extWeight * externalCreditDeposit;
}
Just to make sure that it will always be executed!
1
2
3
4
5
6
7
// Variable declaration
        String oldMsisdn = "";
        String newMsisdn = "";
        int rows = 0;
        int cols = 0;
        int tmp = 0;
        int listPtr = 0;
Just to make sure that we know there are variable declarations!
1
2
3
4
5
6
7
8
9
if (request.getParameter("hasBlackberyFromTor")!=null && request.getParameter("hasBlackberyFromTor").equals("1")) {
        
                  
         }else{
         
         
         blackberryExtraPlus  = "-22";
              
         }
Unnecessary empty if statement.

No comments:

Post a Comment