import java.util.List;
-import org.opendaylight.controller.binding.generator.util.BindingGeneratorUtil;
import org.opendaylight.controller.sal.binding.model.api.AnnotationType;
import org.opendaylight.controller.sal.binding.model.api.Constant;
import org.opendaylight.controller.sal.binding.model.api.Enumeration;
return builder.toString();
}
- private static StringBuilder appendAnnotations(final StringBuilder builder,
- final List<AnnotationType> annotations) {
+ private static StringBuilder appendAnnotations(final StringBuilder builder, final List<AnnotationType> annotations) {
if ((builder != null) && (annotations != null)) {
for (final AnnotationType annotation : annotations) {
builder.append("@");
createComment(builder, comment, indent);
builder.append(NL);
builder.append(indent);
-
+
if (!method.getAnnotations().isEmpty()) {
final List<AnnotationType> annotations = method.getAnnotations();
appendAnnotations(builder, annotations);
builder.append(NL);
}
-
+
builder.append(indent + getExplicitType(type) + GAP + name);
builder.append(LB);
for (int i = 0; i < parameters.size(); i++) {
if (i + 1 == parameters.size()) {
separator = "";
}
- builder.append(getExplicitType(p.getType()) + GAP
- + BindingGeneratorUtil.validateParameterName(p.getName())
+ builder.append(getExplicitType(p.getType()) + GAP + p.getName()
+ separator);
}
builder.append(RB);