I was wondering if anyone ever created some kind of system that can check the compilation time that intentional add-ons transmit? I pass on additional functions with the intention of starting another action that tells another activity how to behave
(eg:
Intent i = new Intent(CurrentActivity.this, OtherActivity.class); i.putExtra("ShowOverlay", false); startActivity(i);
)
the problem is that I donβt want future generations of developers to launch this action without sending this intention, because there is no specific default behavior,
I suppose this is possible using some kind of annotation, but it can be tricky, since tracking object-to-object can be an impossible task at compile time. Just wondering if anyone was thinking about this, and if it is theoretically possible.
ekatz source share