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] Created: (JCR-1391) [PATCH] remove minor unneeded code stutter
Date Sat, 16 Feb 2008 18:17:08 GMT
[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


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