jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1391) [PATCH] remove minor unneeded code stutter
Date Sat, 16 Feb 2008 18:19:07 GMT

     [ https://issues.apache.org/jira/browse/JCR-1391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dave Brosius updated JCR-1391:
------------------------------

    Attachment: remove_stutter.patch

> [PATCH] remove minor unneeded code stutter
> ------------------------------------------
>
>                 Key: JCR-1391
>                 URL: https://issues.apache.org/jira/browse/JCR-1391
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-server
>    Affects Versions: 1.4
>            Reporter: Dave Brosius
>            Priority: Minor
>             Fix For: 1.4.1
>
>         Attachments: remove_stutter.patch
>
>
> Code has a repeated method call on isOrderable for no reason as such
> {code}
> public String getSupportedMethods() {
>         String ms = super.getSupportedMethods();
>         if (isOrderable()) {
>             StringBuffer sb = new StringBuffer(ms);
>             // Ordering
>             if (isOrderable()) {
>                 sb.append(", ").append(OrderingResource.METHODS);
>             }
>             return sb.toString();
>         } else {
>             return ms;
>         }
>     }
> {code}
> patch cleans this up.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message