mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.0 to HEAD
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5161 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5162 . - Word 2003 fix svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5167 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V2.0@5168 . - .sh executable scripts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5174 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -153,19 +153,19 @@ public class FileLock
|
||||
|
||||
// Check if the lock is for the whole file
|
||||
|
||||
if (isWholeFile())
|
||||
if ( isWholeFile())
|
||||
return true;
|
||||
|
||||
// Check if the locks overlap
|
||||
|
||||
long endOff = getOffset() + getLength();
|
||||
long endOff = getOffset() + ( getLength() - 1);
|
||||
|
||||
if (getOffset() < offset && endOff < offset)
|
||||
return false;
|
||||
|
||||
endOff = offset + len;
|
||||
endOff = offset + ( len - 1);
|
||||
|
||||
if (getOffset() > endOff)
|
||||
if ( getOffset() > endOff)
|
||||
return false;
|
||||
|
||||
// Locks overlap
|
||||
|
Reference in New Issue
Block a user