From: <bo...@us...> - 2014-11-28 20:49:35
|
Revision: 550 http://sourceforge.net/p/xmlunit/code/550 Author: bodewig Date: 2014-11-28 20:49:33 +0000 (Fri, 28 Nov 2014) Log Message: ----------- DOMNodeInfo should be visibly immutable Modified Paths: -------------- trunk/xmlunit/src/main/java-core/net/sf/xmlunit/diff/XPathContext.java trunk/xmlunit/src/main/net-core/diff/XPathContext.cs Modified: trunk/xmlunit/src/main/java-core/net/sf/xmlunit/diff/XPathContext.java =================================================================== --- trunk/xmlunit/src/main/java-core/net/sf/xmlunit/diff/XPathContext.java 2014-11-28 19:20:42 UTC (rev 549) +++ trunk/xmlunit/src/main/java-core/net/sf/xmlunit/diff/XPathContext.java 2014-11-28 20:49:33 UTC (rev 550) @@ -192,8 +192,8 @@ } public static final class DOMNodeInfo implements NodeInfo { - private QName name; - private short type; + private final QName name; + private final short type; public DOMNodeInfo(Node n) { name = Nodes.getQName(n); type = n.getNodeType(); Modified: trunk/xmlunit/src/main/net-core/diff/XPathContext.cs =================================================================== --- trunk/xmlunit/src/main/net-core/diff/XPathContext.cs 2014-11-28 19:20:42 UTC (rev 549) +++ trunk/xmlunit/src/main/net-core/diff/XPathContext.cs 2014-11-28 20:49:33 UTC (rev 550) @@ -190,8 +190,8 @@ } public class DOMNodeInfo : INodeInfo { - private XmlQualifiedName name; - private XmlNodeType type; + private readonly XmlQualifiedName name; + private readonly XmlNodeType type; public DOMNodeInfo(XmlNode n) { name = Nodes.GetQName(n); type = n.NodeType; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |