Permalink
Browse files

LPS-27306 Source formatting

  • Loading branch information...
1 parent b07ae23 commit 74d9afc23f0435075678443d6d6e4e07982d8ca2 @brianchandotcom brianchandotcom committed May 15, 2012
Showing with 11 additions and 12 deletions.
  1. +11 −12 portal-impl/src/com/liferay/portal/repository/cmis/model/CMISFileEntry.java
@@ -428,23 +428,22 @@ public boolean hasLock() {
Set<Action> allowableActionsSet =
allowableActions.getAllowableActions();
- if (!allowableActionsSet.contains(Action.CAN_CHECK_IN)) {
- List<CmisExtensionElement> allowableActionsExtensions =
- allowableActions.getExtensions();
+ if (allowableActionsSet.contains(Action.CAN_CHECK_IN)) {
+ return true;
+ }
- for (CmisExtensionElement cmisExtensionElement :
- allowableActionsExtensions) {
+ List<CmisExtensionElement> cmisExtensionElements =
+ allowableActions.getExtensions();
- String elementName = cmisExtensionElement.getName();
+ for (CmisExtensionElement cmisExtensionElement :
+ cmisExtensionElements) {
- if (elementName.equals("canCheckInSpecified")) {
- return Boolean.valueOf(cmisExtensionElement.getValue());
- }
+ String name = cmisExtensionElement.getName();
+
+ if (name.equals("canCheckInSpecified")) {
+ return GetterUtil.getBoolean(cmisExtensionElement.getValue());
}
}
- else {
- return true;
- }
return false;
}

0 comments on commit 74d9afc

Please sign in to comment.