I am curious if it is possible to use annotation for a class or method that replaces comments when or before starting comments line comments. For example, if on android:
@LogComments
class MyActivity extends Activity {
@Override public void onCreate(Bundle b) {
super.onCreate(b);
int a = 1;
int b = 2;
}
}
translate something like
class MyActivity extends Activity {
@Override public void onCreate(Bundle b) {
super.onCreate(b);
Log.d("TAG", "set some local vars");
int a = 1;
int b = 2;
}
}
source
share