tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkemn...@apache.org
Subject [1/2] tapestry-5 git commit: TAP5-2337: select attribute char once
Date Mon, 03 Aug 2015 09:05:43 GMT
Repository: tapestry-5
Updated Branches:
  refs/heads/master 5397f3a48 -> 13f4070ea


TAP5-2337: select attribute char once


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/c409f589
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/c409f589
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/c409f589

Branch: refs/heads/master
Commit: c409f589b235ba58fc61007b080dd39b4e53be39
Parents: 5397f3a
Author: Jochen Kemnade <jochen.kemnade@eddyson.de>
Authored: Fri Jul 31 16:28:09 2015 +0200
Committer: Jochen Kemnade <jochen.kemnade@eddyson.de>
Committed: Fri Jul 31 16:28:09 2015 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/c409f589/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java
b/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java
index cf9bd0b..dd98a89 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java
@@ -17,15 +17,17 @@ package org.apache.tapestry5.dom;
 public abstract class AbstractMarkupModel implements MarkupModel
 {
     private final boolean useApostropheForAttributes;
+    private final char attributeQuoteChar;
 
     protected AbstractMarkupModel(boolean useApostropheForAttributes)
     {
         this.useApostropheForAttributes = useApostropheForAttributes;
+        this.attributeQuoteChar = useApostropheForAttributes ? '\'' : '"';
     }
 
     public char getAttributeQuote()
     {
-        return useApostropheForAttributes ? '\'' : '"';
+        return attributeQuoteChar;
     }
 
     /**


Mime
View raw message