Author: antoine Date: Sun Mar 25 14:43:55 2007 New Revision: 522358 URL: http://svn.apache.org/viewvc?view=rev&rev=522358 Log: Bugzilla 41900 implement SlidePrincipal.equals(Object)
Modified: jakarta/slide/trunk/WHATSNEW jakarta/slide/trunk/contributors.xml jakarta/slide/trunk/src/jaas/org/apache/slide/jaas/spi/SlidePrincipal.java Modified: jakarta/slide/trunk/WHATSNEW URL: http://svn.apache.org/viewvc/jakarta/slide/trunk/WHATSNEW?view=diff&rev=522358&r1=522357&r2=522358 ============================================================================== --- jakarta/slide/trunk/WHATSNEW (original) +++ jakarta/slide/trunk/WHATSNEW Sun Mar 25 14:43:55 2007 @@ -15,6 +15,9 @@ * Potentially unclosed InputStream and FileOutputStream in WebdavResource.getMethod(String path, File file) Bugzilla 41574. +* wrong implementation of SlidePrincipal.equals method. + Bugzilla 41900. + Other changes: -------------- Modified: jakarta/slide/trunk/contributors.xml URL: http://svn.apache.org/viewvc/jakarta/slide/trunk/contributors.xml?view=diff&rev=522358&r1=522357&r2=522358 ============================================================================== --- jakarta/slide/trunk/contributors.xml (original) +++ jakarta/slide/trunk/contributors.xml Sun Mar 25 14:43:55 2007 @@ -15,6 +15,10 @@ These are some of the many people who have helped Slide become so successful. </introduction> <name> + <first>Alexei A</first> + <last>Ukhov</last> + </name> + <name> <first>Benjamin</first> <last>Lerman</last> </name> Modified: jakarta/slide/trunk/src/jaas/org/apache/slide/jaas/spi/SlidePrincipal.java URL: http://svn.apache.org/viewvc/jakarta/slide/trunk/src/jaas/org/apache/slide/jaas/spi/SlidePrincipal.java?view=diff&rev=522358&r1=522357&r2=522358 ============================================================================== --- jakarta/slide/trunk/src/jaas/org/apache/slide/jaas/spi/SlidePrincipal.java (original) +++ jakarta/slide/trunk/src/jaas/org/apache/slide/jaas/spi/SlidePrincipal.java Sun Mar 25 14:43:55 2007 @@ -49,5 +49,12 @@ public boolean equals(SlidePrincipal principal) { return principal.getName().equals(getName()); } - + + public boolean equals(Object data) + { + if (data instanceof SlidePrincipal) { + return equals((SlidePrincipal) data); + } + return false; + } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]