directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1397058 - in /directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor: dialogs/UserPermissionDialog.java widgets/ACIItemProtectedItemsComposite.java
Date Thu, 11 Oct 2012 14:02:26 GMT
Author: pamarcelot
Date: Thu Oct 11 14:02:26 2012
New Revision: 1397058

URL: http://svn.apache.org/viewvc?rev=1397058&view=rev
Log:
Fixed a bug due to the type change on the 'precedence' variable (now an Integer (Object) instead
of an int (primitive type)).

Modified:
    directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/dialogs/UserPermissionDialog.java
    directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemProtectedItemsComposite.java

Modified: directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/dialogs/UserPermissionDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/dialogs/UserPermissionDialog.java?rev=1397058&r1=1397057&r2=1397058&view=diff
==============================================================================
--- directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/dialogs/UserPermissionDialog.java
(original)
+++ directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/dialogs/UserPermissionDialog.java
Thu Oct 11 14:02:26 2012
@@ -112,7 +112,7 @@ public class UserPermissionDialog extend
     {
         try
         {
-            int precedence = precedenceCheckbox.getSelection() ? precedenceSpinner.getSelection()
: -1;
+            Integer precedence = precedenceCheckbox.getSelection() ? precedenceSpinner.getSelection()
: null;
             Collection<ProtectedItem> protectedItems = protectedItemsComposite.getProtectedItems();
             Collection<GrantAndDenial> grantsAndDenials = grantsAndDenialsComposite.getGrantsAndDenials();
             returnUserPermission = new UserPermission( precedence, grantsAndDenials, protectedItems
);

Modified: directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemProtectedItemsComposite.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemProtectedItemsComposite.java?rev=1397058&r1=1397057&r2=1397058&view=diff
==============================================================================
--- directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemProtectedItemsComposite.java
(original)
+++ directory/studio/trunk/plugins/aciitemeditor/src/main/java/org/apache/directory/studio/aciitemeditor/widgets/ACIItemProtectedItemsComposite.java
Thu Oct 11 14:02:26 2012
@@ -377,7 +377,6 @@ public class ACIItemProtectedItemsCompos
         {
             for ( ProtectedItemWrapper protectedItemWrapper : protectedItemWrappers )
             {
-
                 if ( protectedItemWrapper.getClazz() == item.getClass() )
                 {
                     protectedItemWrapper.setProtectedItem( item );



Mime
View raw message