[cp-patches] [EMAIL PROTECTED]: FYI: PR21869 More StringBuilder replacements]
- Forwarded message from Andrew John Hughes [EMAIL PROTECTED] - Date: Mon, 28 Apr 2008 20:52:04 +0100 From: Andrew John Hughes [EMAIL PROTECTED] To: classpath-patches@gnu.org Subject: FYI: PR21869 More StringBuilder replacements User-Agent: Mutt/1.5.16 (2007-06-09) The continued removal of StringBuffer usage where possible... ChangeLog: 2008-04-28 Andrew John Hughes [EMAIL PROTECTED] PR classpath/21869 * util/XMLWriter.java, * xpath/ArithmeticExpr.java, * xpath/ConcatFunction.java, * xpath/Expr.java, * xpath/FunctionCall.java, * xpath/NormalizeSpaceFunction.java, * xpath/Selector.java, * xpath/Steps.java, * xpath/TranslateFunction.java, * xpath/VariableReference.java, * xpath/XPathTokenizer.java: Swap use of StringBuffer for CPStringBuilder. -- Andrew :) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint = F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8 Index: gnu/xml/util/XMLWriter.java === RCS file: /sources/classpath/classpath/gnu/xml/util/XMLWriter.java,v retrieving revision 1.3 diff -u -r1.3 XMLWriter.java --- gnu/xml/util/XMLWriter.java 16 Jan 2006 16:23:20 - 1.3 +++ gnu/xml/util/XMLWriter.java 28 Apr 2008 19:48:48 - @@ -37,6 +37,8 @@ package gnu.xml.util; +import gnu.java.lang.CPStringBuilder; + import java.io.BufferedWriter; import java.io.CharConversionException; import java.io.IOException; @@ -152,7 +154,7 @@ private String eol = sysEOL; private short dangerMask; -private StringBuffer stringBuf; +private CPStringBuilderstringBuf; private Locatorlocator; private ErrorHandler errHandler; @@ -289,7 +291,7 @@ } if (dangerMask != 0) - stringBuf = new StringBuffer (); + stringBuf = new CPStringBuilder (); } this.encoding = encoding; Index: gnu/xml/xpath/ArithmeticExpr.java === RCS file: /sources/classpath/classpath/gnu/xml/xpath/ArithmeticExpr.java,v retrieving revision 1.4 diff -u -r1.4 ArithmeticExpr.java --- gnu/xml/xpath/ArithmeticExpr.java 28 Aug 2005 09:05:46 - 1.4 +++ gnu/xml/xpath/ArithmeticExpr.java 28 Apr 2008 19:48:48 - @@ -37,6 +37,8 @@ package gnu.xml.xpath; +import gnu.java.lang.CPStringBuilder; + import javax.xml.namespace.QName; import org.w3c.dom.Node; @@ -139,7 +141,7 @@ public String toString() { -StringBuffer buf = new StringBuffer(); +CPStringBuilder buf = new CPStringBuilder(); buf.append(lhs); buf.append(' '); switch (op) Index: gnu/xml/xpath/ConcatFunction.java === RCS file: /sources/classpath/classpath/gnu/xml/xpath/ConcatFunction.java,v retrieving revision 1.3 diff -u -r1.3 ConcatFunction.java --- gnu/xml/xpath/ConcatFunction.java 9 Jul 2005 20:38:35 - 1.3 +++ gnu/xml/xpath/ConcatFunction.java 28 Apr 2008 19:48:48 - @@ -37,6 +37,8 @@ package gnu.xml.xpath; +import gnu.java.lang.CPStringBuilder; + import java.util.ArrayList; import java.util.Iterator; import java.util.List; @@ -61,7 +63,7 @@ public Object evaluate(Node context, int pos, int len) { -StringBuffer buf = new StringBuffer(); +CPStringBuilder buf = new CPStringBuilder(); for (Iterator i = args.iterator(); i.hasNext(); ) { Expr arg = (Expr) i.next(); @@ -96,7 +98,7 @@ public String toString() { -StringBuffer buf = new StringBuffer(concat(); +CPStringBuilder buf = new CPStringBuilder(concat(); int len = args.size(); for (int i = 0; i len; i++) { Index: gnu/xml/xpath/Expr.java === RCS file: /sources/classpath/classpath/gnu/xml/xpath/Expr.java,v retrieving revision 1.6 diff -u -r1.6 Expr.java --- gnu/xml/xpath/Expr.java 9 Sep 2006 12:12:48 - 1.6 +++ gnu/xml/xpath/Expr.java 28 Apr 2008 19:48:48 - @@ -37,6 +37,8 @@ package gnu.xml.xpath; +import gnu.java.lang.CPStringBuilder; + import java.io.IOException; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; @@ -471,7 +473,7 @@ */ public static String stringValue(Collection nodeSet) { -StringBuffer buf = new StringBuffer(); +CPStringBuilder buf = new CPStringBuilder(); for (Iterator i = nodeSet.iterator(); i.hasNext(); ) { buf.append(stringValue((Node) i.next())); @@ -494,7 +496,7 @@ case Node.DOCUMENT_NODE: // 5.1 Root Node case Node.DOCUMENT_FRAGMENT_NODE: case Node.ELEMENT_NODE: // 5.2 Element Nodes -StringBuffer buf = new
Re: [EMAIL PROTECTED]: JLS 3rd Edition]
Andrew John Hughes wrote: FYI, the 3rd Edition of the Java Language Specification is now available as a PDF in: http://java.sun.com/docs/books/jls/ They say that the dead-tree version would be released sometime in June 2005. The VMSpec has not yet been updated to a third edition but important updates can be found in: http://java.sun.com/docs/books/vmspec/2nd-edition/jvms-maintenance.html Ranjit. [...] These have been available a while (I used them for the new grammar for gjdoc, and the extended class file parsing for jamvm). The latter reference does give a link to an updated version of the class file format, which includes all the annotations, type variables, etc. (as flags and optional sections, so as to give backwards compatibility) If you're talking of the JLS, AFAICT, the 3rd Edition has been released quite recently (perhaps just this week). Before this, there was only a JLS maintenance page where the new features were described: http://java.sun.com/docs/books/jls/jls-maintenance.html Ranjit. -- Ranjit Mathew Email: rmathew AT gmail DOT com Bangalore, INDIA.Web: http://ranjitmathew.hostingzero.com/ ___ Classpath mailing list Classpath@gnu.org http://lists.gnu.org/mailman/listinfo/classpath
RE: [EMAIL PROTECTED]: JLS 3rd Edition]
If you're talking of the JLS, AFAICT, the 3rd Edition has been released quite recently (perhaps just this week). Before this, there was only a JLS maintenance page where the new features were described: http://java.sun.com/docs/books/jls/jls-maintenance.html An earlier draft of the 3e was made available when Tiger was released. It was accessed via the JCP website under one of the maintenance JSR's if I recall correctly. Anyway there have been quite significant updates to the 3e since then. David Holmes ___ Classpath mailing list Classpath@gnu.org http://lists.gnu.org/mailman/listinfo/classpath
[EMAIL PROTECTED]: JLS 3rd Edition]
Hi list, just in case someone is interested. Michael - Forwarded message from Ranjit Mathew [EMAIL PROTECTED] - From: Ranjit Mathew [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed, 20 Apr 2005 12:59:54 +0530 Subject: JLS 3rd Edition Hi, FYI, the 3rd Edition of the Java Language Specification is now available as a PDF in: http://java.sun.com/docs/books/jls/ They say that the dead-tree version would be released sometime in June 2005. The VMSpec has not yet been updated to a third edition but important updates can be found in: http://java.sun.com/docs/books/vmspec/2nd-edition/jvms-maintenance.html Ranjit. -- Ranjit Mathew Email: rmathew AT gmail DOT com Bangalore, INDIA.Web: http://ranjitmathew.hostingzero.com/ - End forwarded message - -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ Classpath mailing list Classpath@gnu.org http://lists.gnu.org/mailman/listinfo/classpath
Re: [EMAIL PROTECTED]: JLS 3rd Edition]
On Wed, 2005-04-20 at 08:41 +0200, Michael Koch wrote: Hi list, just in case someone is interested. Michael - Forwarded message from Ranjit Mathew [EMAIL PROTECTED] - From: Ranjit Mathew [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Wed, 20 Apr 2005 12:59:54 +0530 Subject: JLS 3rd Edition Hi, FYI, the 3rd Edition of the Java Language Specification is now available as a PDF in: http://java.sun.com/docs/books/jls/ They say that the dead-tree version would be released sometime in June 2005. The VMSpec has not yet been updated to a third edition but important updates can be found in: http://java.sun.com/docs/books/vmspec/2nd-edition/jvms-maintenance.html Ranjit. -- Ranjit Mathew Email: rmathew AT gmail DOT com Bangalore, INDIA.Web: http://ranjitmathew.hostingzero.com/ - End forwarded message - These have been available a while (I used them for the new grammar for gjdoc, and the extended class file parsing for jamvm). The latter reference does give a link to an updated version of the class file format, which includes all the annotations, type variables, etc. (as flags and optional sections, so as to give backwards compatibility) -- Andrew :-) Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments. See http://www.fsf.org/philosophy/no-word-attachments.html No software patents in Europe -- http://nosoftwarepatents.com Value your freedom, or you will lose it, teaches history. `Don't bother us with politics' respond those who don't want to learn. -- Richard Stallman Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html public class gcj extends Freedom implements Java { ... } signature.asc Description: This is a digitally signed message part ___ Classpath mailing list Classpath@gnu.org http://lists.gnu.org/mailman/listinfo/classpath
Wiki change email notification
Hi all, If you want to follow more closely what is happening on our wiki http://developer.classpath.org/mediation/ or http://developer.classpath.org/licensing/ then you can now create a User Profile and subscribe to the pages that you are interested in (or .* for all pages). All changes to those pages will then be emailed to you. Having a User Profile and being logged in while editing the wiki also makes it more clear who changes what (otherwise only the ip address is logged and added to each change). So create a User Profile today and start improving and monitoring our wiki! http://developer.classpath.org/mediation/UserPreferences Cheers, Mark signature.asc Description: This is a digitally signed message part ___ Classpath mailing list Classpath@gnu.org http://lists.gnu.org/mailman/listinfo/classpath
All, If you have tried to send me email in the past week it is probably lost. It appears I was bitten by a default mailbox size limit in postfix of 50 MB that I didn't know about before. This should be corrected now. Looks like I missed 20 or 30 emails on the classpath list but the archives have them. Happy Hacking, Brian -- Brian Jones [EMAIL PROTECTED] ___ Classpath mailing list Classpath@gnu.org http://lists.gnu.org/mailman/listinfo/classpath
Re: Archiving email
Michal == Cierniak, Michal [EMAIL PROTECTED] writes: Michal You may be right that Yahoo is not the best way to handle a Michal mailing list. I don't like mail.gnu.org because as far as I Michal can see, it doesn't hide email addresses. I'm a little Michal concerned that every email I send to the Classpath mailing Michal list increases a possibility that I will get spam because Michal someone will scan GNU's mail archives and add my email to Michal their lists. It is a bit irritating. I've just resigned myself to getting spam though. Some of the GNU lists seem to only deliver spam. Michal Does anyone on this mailing list have any suggestions? My Michal experience in managing mailing lists is quite limited. You could ask the GNU admins about obscuring email addresses in the archives. Maybe they would consider it. Tom ___ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath
Archiving email
Mark Wielaard wrote: You can sign up to the ORP mailing list and view the archives at http://groups.yahoo.com/group/orp Yahoo groups is really a pain to use. Even Sourceforge Geocrawler is better then that (although i really like mailman as used by mail.gnu.org). Don't you have archives that are a bit more easy to read then groups.yahoo.com? You may be right that Yahoo is not the best way to handle a mailing list. I don't like mail.gnu.org because as far as I can see, it doesn't hide email addresses. I'm a little concerned that every email I send to the Classpath mailing list increases a possibility that I will get spam because someone will scan GNU's mail archives and add my email to their lists. I'm not expert on privacy issues, so maybe there's something I'm missing, but I'd like to note that since I started to send email to the Classpath mailing list, I started to receive spam messages at my work email address. It may be just a coincidence, but I hadn't received any spam prior to that and I'm really careful not to give away my work email to places that might potentially resell it. I have however considered migrating ORP to the SourceForge Geocrawler because they do seem to hide email addresses. Does anyone on this mailing list have any suggestions? My experience in managing mailing lists is quite limited. Michal ___ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath
Can you please restrict posting to list members? [Fwd: Information re: Email Marketing Report]
Hi. I think I am not alone to be annoyed by the SPAM on the Classpath mailing list. Can you please take action and stop it by restricting post privilege to list members? You have control on this on the page: http://mail.gnu.org/mailman/admin/classpath/privacy/ Thanks. Etienne Original Message Envelope-to: [EMAIL PROTECTED] Received: from fencepost.gnu.org ([199.232.76.164])by www.j-meg.com with esmtp (Exim 3.20 #1 (Debian))id 148RZJ-0002OR-00for [EMAIL PROTECTED]; Tue, 19 Dec 2000 13:32:58 -0500 Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org)by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))id 148RWW-0004xU-00; Tue, 19 Dec 2000 13:30:04 -0500 Received: from [202.103.21.249] (helo=personal.dfminfo.com.cn.)by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))id 148RUm-0004tN-00for [EMAIL PROTECTED]; Tue, 19 Dec 2000 13:28:18 -0500 Received: from www.CRK3LV2ahi.co.ue by personal.dfminfo.com.cn. (SMI-8.6/SMI-SVR4)id CAA09058; Wed, 20 Dec 2000 02:12:01 +0800 From: [EMAIL PROTECTED] Message-Id: [EMAIL PROTECTED] To: Webmaster Subject: Information re: Email Marketing Report X-Sender: [EMAIL PROTECTED] X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Content-Type: text/html; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-RBL-Warning: (relays.mail-abuse.org) Sender: [EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] X-BeenThere: [EMAIL PROTECTED] X-Mailman-Version: 2.0 Precedence: bulk List-Help: mailto:[EMAIL PROTECTED]?subject=help List-Post: mailto:[EMAIL PROTECTED] List-Subscribe: http://mail.gnu.org/mailman/listinfo/classpath,mailto:[EMAIL PROTECTED]?subject=subscribe List-Id: classpath.gnu.org List-Unsubscribe: http://mail.gnu.org/mailman/listinfo/classpath,mailto:[EMAIL PROTECTED]?subject=unsubscribe List-Archive: http://mail.gnu.org/pipermail/classpath/ Date: Tue, 19 Dec 2000 13:18:45 -0500 Status: U X-Mozilla-Status: 9001 X-Mozilla-Status2: X-UIDL: [_4!!3gI!!Q[+"!k+A!! Dear Webmaster, RE: BULK EMAIL SURVIVORS GUIDE We would like to share with you this valuable report that we previously charged our clients for. The reason we are providing it free now is to show you the true power of email marketing and to introduce you to our #1 email marketing softwares that you can immediately use to promote your online business. If you have problems accessing this page, please call us and we will give you an alternative url. Regards BULK EMAIL NETWORK http://www.bulkemailnetwork.com 905-816-0510 905-816-0881 fax Site of the #1 Bulk Email, Opt Email and Email List Softwares on the Net. This message is sent in compliance of the new e-mail bill: SECTION 301.Per Section 301, Paragraph (a)(2)(C) of S. 1618 Further transmissions to you by the sender of this email may be stopped at no cost to you. Please click HERE and send a blank message. We apologize for any inconvenience. Attempts to block this account will only prevent others and you from getting removed from our list. ___ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath ___ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath
Information re: Email Marketing Report
Dear Webmaster, RE: BULK EMAIL SURVIVORS GUIDE We would like to share with you this valuable report that we previously charged our clients for. The reason we are providing it free now is to show you the true power of email marketing and to introduce you to our #1 email marketing softwares that you can immediately use to promote your online business. If you have problems accessing this page, please call us and we will give you an alternative url. Regards BULK EMAIL NETWORK http://www.bulkemailnetwork.com 905-816-0510 905-816-0881 fax Site of the #1 Bulk Email, Opt Email and Email List Softwares on the Net. This message is sent in compliance of the new e-mail bill: SECTION 301.Per Section 301, Paragraph (a)(2)(C) of S. 1618 Further transmissions to you by the sender of this email may be stopped at no cost to you. Please click HERE and send a blank message. We apologize for any inconvenience. Attempts to block this account will only prevent others and you from getting removed from our list. ___ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath
Information re: Email Marketing Report
Dear Webmaster, RE: BULK EMAIL SURVIVORS GUIDE We would like to share with you this valuable report that we previously charged our clients for. The reason we are providing it free now is to show you the true power of email marketing and to introduce you to our two-tier affiliate program. This program is free to join and many of our members are having great success with it. Regards BulkEmailNetwork.com To be removed, please click HERE and send a blank message, sorry for the inconvience. ___ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath
my email (slightly off topic)
This morning (erm, afternoon) fetchmail bombed on me, and I lost a message that was 1850 bytes. So if any one of you sent me email between the hours of 4am EDT and 1:30pm EDT on Wed Aug 5, please resend. -- Paul Fisher * [EMAIL PROTECTED]