This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-datasketches-characterization.git
The following commit(s) were added to refs/heads/master by this push:
new 8b5d1fa Add license escape character CommentType
8b5d1fa is described below
commit 8b5d1faa614d52c69ec6a92c99334b672b87108b
Author: Lee Rhodes <[email protected]>
AuthorDate: Wed Oct 23 17:40:11 2019 -0700
Add license escape character CommentType
---
src/test/java/org/apache/datasketches/LicenseSwap.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/datasketches/LicenseSwap.java
b/src/test/java/org/apache/datasketches/LicenseSwap.java
index 0a245a5..031f6b3 100644
--- a/src/test/java/org/apache/datasketches/LicenseSwap.java
+++ b/src/test/java/org/apache/datasketches/LicenseSwap.java
@@ -35,7 +35,7 @@ import java.io.File;
@SuppressWarnings("unused")
public class LicenseSwap {
private static final String LS = System.getProperty("line.separator");
- private static enum CommentType { JAVA, SCRIPT }
+ private static enum CommentType { JAVA, SCRIPT, XML }
private static String before;
private static String esc;
private static String after;
@@ -64,6 +64,11 @@ public class LicenseSwap {
after = LS;
break;
}
+ case XML: {
+ before = "<!--" + LS;
+ esc = " ";
+ after = "-->" + LS;
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]