[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DeadAssignmentEliminator




> } else if(rhs instanceof InstanceFieldRef) {
>         if(method.isStatic() &&
>                 lhs == body.getThisLocal()) {
>                 isEssential = false;
>       } else {
>                 isEssential = true;
> }

lhs is not defined so I guess you mean rhs.getBase() .
Anyway, what you say seems correct to me, but I am not an expert.

Fabien

-- 
----        Fabien Deschodt                    Sable Research Group
------    fabien@deschodt.net               http://www.sable.mcgill.ca
----    http://www.deschodt.net
--