java/src/org/openantivirus/engine/censor/matcharray MatchArrayCensor.java,1.1,1.2

Kurt Huwig <[email protected]> Wed, 19 May 2004 08:09:53 +0000
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/java/src/org/openantivirus/engine/censor/matcharray
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8913/src/org/openantivirus/engine/censor/matcharray

Modified Files:
	MatchArrayCensor.java 
Log Message:
Optimized memory trashing

Index: MatchArrayCensor.java
===================================================================
RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/censor/matcharray/MatchArrayCensor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- MatchArrayCensor.java	19 May 2004 07:33:40 -0000	1.1
+++ MatchArrayCensor.java	19 May 2004 08:09:50 -0000	1.2
@@ -41,6 +41,7 @@
     private static final int BUFFER_SIZE = 32768;
 
     private final PositionFoundListener[][] matchArray;
+    private final PositionFoundEvent pfe = new PositionFoundEvent();
 
     private int match;
     
@@ -138,7 +139,7 @@
             final PositionFoundListener[] matchListener = matchArray[match];
             if (matchListener != null) {
                 final int iPosition = i - 1;
-                final PositionFoundEvent pfe = new PositionFoundEvent(
+                pfe.setValues(
                         entry,
                         fileOffset + iPosition,
                         ab,



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click