incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r884711 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
Date Thu, 26 Nov 2009 22:02:36 GMT
Author: vdichev
Date: Thu Nov 26 22:02:36 2009
New Revision: 884711

URL: http://svn.apache.org/viewvc?rev=884711&view=rev
Log:
Performance optimization.

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala?rev=884711&r1=884710&r2=884711&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala Thu Nov
26 22:02:36 2009
@@ -211,7 +211,7 @@
 
   private[model] object text extends MappedText(this){
     import scala.xml.transform.{RuleTransformer, RewriteRule}
-    override def asJsExp =
+    override lazy val asJsExp =
       JE.Str(XML.loadString(is).map(new RuleTransformer(new RewriteRule {
         override def transform(n: Node) = n match {
           case e: Elem if "body" == e.label => <body>{digestedXHTML}</body>



Mime
View raw message