jeudi 11 octobre 2018

Detect infinite loop inside a method

I have 2 methods in my main class

public class pol{

    public sub() {
         //... do this
         //... do this
         //... do this
         return result
    }

     public sub2()
         // calling method sub() here
         return result
     }

}

Is there any way so that i can detect that i wrote an infinite loop in sub() using method sub2() ?





Aucun commentaire:

Enregistrer un commentaire