Closed Vishwa4jeet closed 5 years ago
Other than trying to close issue #713, why are we doing this at all? What problem does it solve?
Agreed with @quinton-hoole I understand that, we tried to remove $__result
variable declaration itself if the method do not have anything to return. In fact, java.lang.Object $__result
doesn't have to be explicitly initialized with null
. Also these change you made are applicable for AppStub generation too(not just for policyStub).
We should fix issues based on priority.
Fixes #713
Removed unused return value for void method from generated stubs.
Screenshots:
Stub method generation:
Proof of clean build post the change: