TIA,
Mike
--
You received this message because you are subscribed to the Google Groups "pyx4me-users" group.
To post to this group, send email to pyx4me...@googlegroups.com.
To unsubscribe from this group, send email to pyx4me-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyx4me-users?hl=en.
class Feature1 {
public Feature1() {
}
public static final boolean isFeature1Supported() {
... some run-time checks if a feature (ie an JSR) is supported on
device ...
}
public void doFeature() {
if(isFeature1Supported()) {
... feature's code here ...
}
}
}
My approach is to tell jour that isFeature1Supported() returns false,
so proguard will eliminate
unnecessary code. Sounds good? How can I do that in jour (make a
function to return false) - do I need to write my own instrumentation
or can use a standard one?
TIA,
Mike
Vlad
Mike
Vlad
Probably I should use something more certain - make my own
instrumentor. So I need to add it to cldcunit-instrument artifact,
correct?
Mike
On Mon, Mar 29, 2010 at 7:33 PM, Vlad Skarzhevskyy
I had a look at sources of jour, to see how
MakeEmptyMethodInstrumentor works, to use it as a start point, and
found out that it already handles return values for the empty method
(and returns false for boolean ones). So it is WAD and meets my needs.
Thanks for that,
Mike