Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 22507 invoked from network); 26 Jun 2005 09:58:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2005 09:58:35 -0000 Received: (qmail 12847 invoked by uid 500); 26 Jun 2005 09:57:38 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 11927 invoked by uid 500); 26 Jun 2005 09:57:32 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 10873 invoked by uid 500); 26 Jun 2005 09:57:26 -0000 Received: (qmail 10528 invoked by uid 99); 26 Jun 2005 09:57:23 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 26 Jun 2005 02:57:23 -0700 Received: (qmail 19428 invoked by uid 1569); 26 Jun 2005 09:57:23 -0000 Message-ID: <20050626095723.19423.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r201760 - /jakarta/commons/proper/io/branches/finder-reminder/java/org/apache/commons/io/find/FindingFilter.java Date: Sun, 26 Jun 2005 09:57:22 -0000 To: commons-cvs@jakarta.apache.org From: scolebourne@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: scolebourne Date: Sat Jun 25 08:55:43 2005 New Revision: 201760 URL: http://svn.apache.org/viewcvs?rev=201760&view=rev Log: Avoid int overflow bug 34601, from Martin Kompf Modified: jakarta/commons/proper/io/branches/finder-reminder/java/org/apache/commons/io/find/FindingFilter.java Modified: jakarta/commons/proper/io/branches/finder-reminder/java/org/apache/commons/io/find/FindingFilter.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/io/branches/finder-reminder/java/org/apache/commons/io/find/FindingFilter.java?rev=201760&r1=201759&r2=201760&view=diff ============================================================================== --- jakarta/commons/proper/io/branches/finder-reminder/java/org/apache/commons/io/find/FindingFilter.java (original) +++ jakarta/commons/proper/io/branches/finder-reminder/java/org/apache/commons/io/find/FindingFilter.java Sat Jun 25 08:55:43 2005 @@ -1,5 +1,5 @@ /* - * Copyright 2001-2004 The Apache Software Foundation. + * Copyright 2001-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ * this class. * * @author Henri Yandell + * @author Martin Kompf * @version $Id$ * @since 1.1 */ @@ -174,7 +175,8 @@ } public boolean accept(File file) { boolean daystart = this.parent.isDaystartConfigured(); - return FindingFilter.invert( this.invert, file.lastModified() > System.currentTimeMillis() - this.argument * 60000 ); + return FindingFilter.invert( this.invert, + file.lastModified() > System.currentTimeMillis() - this.argument * 60000L ); } } @@ -212,7 +214,8 @@ } public boolean accept(File file) { boolean daystart = this.parent.isDaystartConfigured(); - return FindingFilter.invert( this.invert, file.lastModified() > System.currentTimeMillis() - this.argument * 60000*60*24 ); + return FindingFilter.invert( this.invert, + file.lastModified() > System.currentTimeMillis() - this.argument * 60000L * 60L * 24L ); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org