vgritsenko 2004/05/10 11:34:06 Modified: src/java/org/apache/regexp RE.java Log: Javadoc tweaks Revision Changes Path 1.23 +5 -4 jakarta-regexp/src/java/org/apache/regexp/RE.java Index: RE.java =================================================================== RCS file: /home/cvs/jakarta-regexp/src/java/org/apache/regexp/RE.java,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- RE.java 20 Mar 2004 14:35:42 -0000 1.22 +++ RE.java 10 May 2004 18:34:06 -0000 1.23 @@ -248,13 +248,14 @@ * the pre-compiled expression re1 and thus avoid the overhead of * compiling the expression at runtime. If you require more dynamic * regular expressions, you can construct a single RECompiler object and - * re-use it to compile each expression. * Similarly, you can change the - * program run by a given matcher object at any time. * However, RE and + * re-use it to compile each expression. Similarly, you can change the + * program run by a given matcher object at any time. However, RE and * RECompiler are not threadsafe (for efficiency reasons, and because * requiring thread safety in this class is deemed to be a rare * requirement), so you will need to construct a separate compiler or * matcher object for each thread (unless you do thread synchronization - * yourself). + * yourself). Once expression compiled into the REProgram object, REProgram + * can be safely shared across multiple threads and RE objects. * * <br><p><br> *
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]