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

ASF GitHub Bot commented on CAMEL-7731:
---------------------------------------

GitHub user davidkarlsen opened a pull request:

    https://github.com/apache/camel/pull/249

    CAMEL-7731: fix typo

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/davidkarlsen/camel CAMEL-7731

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/249.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #249
    
----
commit d7ba926794b4df826c0fc8c57e4ce5afb72bb0e2
Author: david <[email protected]>
Date:   2014-08-21T16:48:03Z

    CAMEL-7731: fix typo

----


> DefaultBeanRowMapper broken
> ---------------------------
>
>                 Key: CAMEL-7731
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7731
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jdbc
>    Affects Versions: 2.13.2
>            Reporter: Nathan Wray
>         Attachments: patchfile.txt
>
>
> DefaultBeanRowMapper current version does not upper-case when it should, due 
> to what appears to be a copy paste error (note the toLowerCase in both 
> branches)
> if (toUpper) {
>       char upper = Character.toLowerCase(ch);
>       sb.append(upper);
>       // reset flag
>       toUpper = false;
> } else {
>       char lower = Character.toLowerCase(ch);
>       sb.append(lower);
> }
> should be
> if (toUpper) {
>       char upper = Character.toUpperCase(ch);
>       sb.append(upper);
>       // reset flag
>       toUpper = false;
> } else {
>       char lower = Character.toLowerCase(ch);
>       sb.append(lower);
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to