You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by po...@apache.org on 2019/05/30 19:17:36 UTC

[creadur-rat] branch trunk updated: RAT-244: Apply performance warning from IDE

This is an automated email from the ASF dual-hosted git repository.

pottlinger pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 80e49e0  RAT-244: Apply performance warning from IDE
80e49e0 is described below

commit 80e49e035ff23256accad44c59facb8aac7f3560
Author: Hugo Hirsch <gi...@hugo-hirsch.de>
AuthorDate: Thu May 30 21:17:30 2019 +0200

    RAT-244: Apply performance warning from IDE
---
 .../src/test/java/org/apache/rat/report/xml/MockXmlWriter.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/apache-rat-core/src/test/java/org/apache/rat/report/xml/MockXmlWriter.java b/apache-rat-core/src/test/java/org/apache/rat/report/xml/MockXmlWriter.java
index ec08988..4ad95ad 100644
--- a/apache-rat-core/src/test/java/org/apache/rat/report/xml/MockXmlWriter.java
+++ b/apache-rat-core/src/test/java/org/apache/rat/report/xml/MockXmlWriter.java
@@ -71,7 +71,7 @@ public class MockXmlWriter implements IXmlWriter {
         final Object call = calls.get(index);
         if (call instanceof Content) {
             Content contentCall = (Content) call;
-            result = content.equals(contentCall.content);
+            result = content.contentEquals(contentCall.content);
         }
         return result;
     }
@@ -81,7 +81,7 @@ public class MockXmlWriter implements IXmlWriter {
         final Object call = calls.get(index);
         if (call instanceof OpenElement) {
             OpenElement openElement = (OpenElement) call;
-            result = name.equals(openElement.elementName);
+            result = name.contentEquals(openElement.elementName);
         }
         return result;
     }
@@ -91,7 +91,7 @@ public class MockXmlWriter implements IXmlWriter {
         final Object call = calls.get(index);
         if (call instanceof Attribute) {
             Attribute attribute = (Attribute) call;
-            result = name.equals(attribute.name) && value.equals(attribute.value);
+            result = name.contentEquals(attribute.name) && value.contentEquals(attribute.value);
         }
         return result;
     }