You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2009/05/27 10:37:58 UTC

svn commit: r779054 - in /commons/proper/cli/trunk/src/java/org/apache/commons/cli: CommandLine.java TypeHandler.java

Author: ebourg
Date: Wed May 27 08:37:57 2009
New Revision: 779054

URL: http://svn.apache.org/viewvc?rev=779054&view=rev
Log:
Code style

Modified:
    commons/proper/cli/trunk/src/java/org/apache/commons/cli/CommandLine.java
    commons/proper/cli/trunk/src/java/org/apache/commons/cli/TypeHandler.java

Modified: commons/proper/cli/trunk/src/java/org/apache/commons/cli/CommandLine.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/java/org/apache/commons/cli/CommandLine.java?rev=779054&r1=779053&r2=779054&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/java/org/apache/commons/cli/CommandLine.java (original)
+++ commons/proper/cli/trunk/src/java/org/apache/commons/cli/CommandLine.java Wed May 27 08:37:57 2009
@@ -106,8 +106,7 @@
      * @throws ParseException if there are problems turning the option value into the desired type
      * @see PatternOptionBuilder
      */
-    public Object getParsedOptionValue(String opt)
-    throws ParseException
+    public Object getParsedOptionValue(String opt) throws ParseException
     {
         String res = getOptionValue(opt);
 

Modified: commons/proper/cli/trunk/src/java/org/apache/commons/cli/TypeHandler.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/java/org/apache/commons/cli/TypeHandler.java?rev=779054&r1=779053&r2=779054&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/java/org/apache/commons/cli/TypeHandler.java (original)
+++ commons/proper/cli/trunk/src/java/org/apache/commons/cli/TypeHandler.java Wed May 27 08:37:57 2009
@@ -43,8 +43,7 @@
      * @return The instance of <code>obj</code> initialised with
      * the value of <code>str</code>.
      */
-    public static Object createValue(String str, Object obj)
-    throws ParseException
+    public static Object createValue(String str, Object obj) throws ParseException
     {
         return createValue(str, (Class) obj);
     }
@@ -58,8 +57,7 @@
      * @return The instance of <code>clazz</code> initialised with
      * the value of <code>str</code>.
      */
-    public static Object createValue(String str, Class clazz)
-    throws ParseException
+    public static Object createValue(String str, Class clazz) throws ParseException
     {
         if (PatternOptionBuilder.STRING_VALUE == clazz)
         {
@@ -110,8 +108,7 @@
       * @return the initialised object, or null if it couldn't create
       * the Object.
       */
-    public static Object createObject(String classname)
-    throws ParseException
+    public static Object createObject(String classname) throws ParseException
     {
         Class cl = null;
 
@@ -146,8 +143,7 @@
      * @return the number represented by <code>str</code>, if <code>str</code>
      * is not a number, null is returned.
      */
-    public static Number createNumber(String str)
-    throws ParseException
+    public static Number createNumber(String str) throws ParseException
     {
         try
         {
@@ -172,8 +168,7 @@
      * @param classname the class name
      * @return The class if it is found, otherwise return null
      */
-    public static Class createClass(String classname)
-    throws ParseException
+    public static Class createClass(String classname) throws ParseException
     {
         try
         {
@@ -192,8 +187,7 @@
      * @return The date if <code>str</code> is a valid date string,
      * otherwise return null.
      */
-    public static Date createDate(String str)
-    throws ParseException
+    public static Date createDate(String str) throws ParseException
     {
         throw new UnsupportedOperationException("Not yet implemented");
     }
@@ -205,8 +199,7 @@
      * @return The URL is <code>str</code> is well-formed, otherwise
      * return null.
      */
-    public static URL createURL(String str)
-    throws ParseException
+    public static URL createURL(String str) throws ParseException
     {
         try
         {
@@ -224,8 +217,7 @@
      * @param str the File location
      * @return The file represented by <code>str</code>.
      */
-    public static File createFile(String str)
-    throws ParseException
+    public static File createFile(String str) throws ParseException
     {
         return new File(str);
     }
@@ -236,8 +228,7 @@
      * @param str the paths to the files
      * @return The File[] represented by <code>str</code>.
      */
-    public static File[] createFiles(String str)
-    throws ParseException
+    public static File[] createFiles(String str) throws ParseException
     {
         // to implement/port:
         //        return FileW.findFiles(str);