Update DefaultParameterizedParser.java
Added comments.
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
package com.beust.jcommander.parser;
import com.beust.jcommander.IParameterizedParser;
@@ -10,14 +5,22 @@ import com.beust.jcommander.Parameterized;
import java.util.List;
/**
+ * Pulled from the JCommander where is reflects the object to determine the Parameter annotations.
*
* @author Tim Gallagher
*/
public class DefaultParameterizedParser implements IParameterizedParser {
+ /**
+ * Wraps the default parser.
+ *
+ * @param annotatedObj an instance of the object with Parameter related annotations.
+ *
+ * @author Tim Gallagher
+ */
@Override
- public List<Parameterized> parseArg(Object arg) {
- return Parameterized.parseArg(arg);
+ public List<Parameterized> parseArg(Object annotatedObj) {
+ return Parameterized.parseArg(annotatedObj);
}
}
