I have nested class CRecursion which has method that do recursion. This CRecursion created in many threads. Is safe call from thread method from main class? Thanks.
class A {
method1() {....}
for(int i=0;i<100;i++){
execute(new CRecursion(...))
}
protected CRecursion {
calculate (par){
if (some_condition) {
calculate(par1)
} else {
String s=method1(value);
.....
}
}
....
}
Variable value is Object. But internal for each method.