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-1965) [PATCH] Remove Stutter in ItemValidator
Date Wed, 04 Feb 2009 19:43:59 GMT
[PATCH] Remove Stutter in ItemValidator
---------------------------------------

                 Key: JCR-1965
                 URL: https://issues.apache.org/jira/browse/JCR-1965
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-core
    Affects Versions: 1.6.0
            Reporter: Dave Brosius
            Priority: Trivial
             Fix For: 1.6.0
         Attachments: remove_stutter.diff

ItemValidator duplicates code for no reason. Remove the duplication

        if (permissions > Permission.NONE) {
            Path path = item.getPrimaryPath();
            if (!accessMgr.isGranted(item.getPrimaryPath(), permissions)) {
                return false;
            }

to

        if (permissions > Permission.NONE) {
            Path path = item.getPrimaryPath();
            if (!accessMgr.isGranted(path, permissions)) {
                return false;
            }



-- 
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