[jira] [Commented] (MATH-962) Vector3DFormat.parse does not ignore whitespace

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (MATH-962) Vector3DFormat.parse does not ignore whitespace

AD_LB (Jira)

    [ https://issues.apache.org/jira/browse/MATH-962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625333#comment-13625333 ]

Leon French commented on MATH-962:
----------------------------------

Oh, I see. Thanks for clearing that up.

I'm not sure how to make that easier for the next person. A note to the API documentation may help.
               

> Vector3DFormat.parse does not ignore whitespace
> -----------------------------------------------
>
>                 Key: MATH-962
>                 URL: https://issues.apache.org/jira/browse/MATH-962
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>         Environment: Macosxm, Java 1.6.0
>            Reporter: Leon French
>            Priority: Minor
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Vector3DFormat notes it ingores whitespace in the javadoc but in the below example it does not:
> Vector3DFormat vf = new Vector3DFormat("(", ")", ",");
> System.out.println(vf.parse("(1, 2, 3)")); //prints {1; 2; 3}
> System.out.println(vf.parse("(1,2,3)"));   //prints null

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira