How can I create a code template in NetBeans 7.1.1 for this:
public static void someMethodName(String arg1, Integer arg2) {
LOG.debug("someMethodName{}, {}", new Object[]{arg1, arg2});
...
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Something like the following should work 🙂
But you probably wanted to be able to specify the number of parameters. Unfortunately something like the following:
would not work because it would include the type names also in the LOG line:
A workaround that comes to my mind is to use the first solution and provide different code templates for different number of method parameters (e.g. Psm1, Psm2, …).