14 lines
439 B
Java
14 lines
439 B
Java
package ex2;
|
|
|
|
import ch.usi.dag.disl.annotation.GuardMethod;
|
|
import ch.usi.dag.disl.staticcontext.ClassStaticContext;
|
|
import ch.usi.dag.disl.staticcontext.MethodStaticContext;
|
|
|
|
public class IsNotTriviallyThreadGuard {
|
|
|
|
@GuardMethod
|
|
public static boolean isNotTriviallyThread(final ClassStaticContext csc, final MethodStaticContext msc) {
|
|
return !msc.isMethodStatic() && !IsTriviallyThreadGuard.isThread(csc, msc);
|
|
}
|
|
|
|
}
|