[tex4ht-commits] [SCM] tex4ht updated: r728 - trunk/lit

karl at gnu.org.ua karl at gnu.org.ua
Sun Jun 7 00:14:40 CEST 2020


Author: karl
Date: 2020-06-07 01:14:40 +0300 (Sun, 07 Jun 2020)
New Revision: 728

Modified:
   trunk/lit/ChangeLog
   trunk/lit/xtpipes.tex
Log:
xtpipes java updates, from Vincent

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-06-06 15:42:08 UTC (rev 727)
+++ trunk/lit/ChangeLog	2020-06-06 22:14:40 UTC (rev 728)
@@ -1,3 +1,12 @@
+2020-06-06  Vincent Bela\"iche  <vincent.belaiche at gmail.com>
+
+	* xtpipes.tex (End document system call): Remove
+	-Xlint:deprecation from javac call.
+	(<xtpipes imports>): Add xtpipes.XtpipesPrintWriter import.
+	(<process script map>, <<set start element>, <save status of xmlns
+	above element>): Replace deprecated Integer/Boolean allocation with
+	new by call to static member function valueOf.
+
 2020-06-06  Karl Berry  <karl at freefriends.org>
 
 	* Makefile: use htlatex instead of xhlatex throughout.

Modified: trunk/lit/xtpipes.tex
===================================================================
--- trunk/lit/xtpipes.tex	2020-06-06 15:42:08 UTC (rev 727)
+++ trunk/lit/xtpipes.tex	2020-06-06 22:14:40 UTC (rev 728)
@@ -231,7 +231,7 @@
 \ifOption{win} {}{
 \AtEndDocument{\Needs{"
     find \WORK\space -type f -iname '*.java' -print0
-    | xargs -0 javac -Xlint:deprecation -d \XTPIPES\space -sourcepath \WORK
+    | xargs -0 javac -d \XTPIPES\space -sourcepath \WORK
     ;
 "}}
 }
@@ -333,6 +333,7 @@
 \<xtpipes imports\><<<
 // import xtpipes.util.InputObject;
 // import xtpipes.util.FileInfo;
+import xtpipes.XtpipesPrintWriter;
 import java.net.URLConnection;
 import java.io.*;
 import java.lang.reflect.*;
@@ -1043,7 +1044,7 @@
 
 \<process script map\><<<
 public void startDocument () {
-   condition.push( new Boolean(true) );
+   condition.push( Boolean.valueOf(true) );
 }
 >>>
 
@@ -1081,7 +1082,7 @@
         condition = null;
         return;
    }  }
-   condition.push( new Boolean(cond) );
+   condition.push( Boolean.valueOf(cond) );
 }
 >>>
 
@@ -4093,11 +4094,11 @@
 
 \<set start element\><<<
 if( flag ){
-   Object [] state = { new Boolean(savemode), code, match };
+   Object [] state = { Boolean.valueOf(savemode), code, match };
    stack.push( state );
    savemode=true; code=""; match= key;
 } else {
-   Object [] state = { new Boolean(savemode), null, null };
+   Object [] state = { Boolean.valueOf(savemode), null, null };
    stack.push( state );
 }
 add( s );
@@ -4287,7 +4288,7 @@
 
 \<save status of xmlns above element\><<<
 int top = nsName.size();
-nsStack.push( new Integer(top) );
+nsStack.push( Integer.valueOf(top) );
 >>>
 
 \<recall status of xmlns above element\><<<
@@ -4496,7 +4497,7 @@
       mkdir -p \LIB\space || exit 1
       ;
       find \WORK\space -type f -iname '*.java' -print0
-      | xargs -0 javac -Xlint:deprecation -d \XTPIPES\space -sourcepath \WORK
+      | xargs -0 javac -d \XTPIPES\space -sourcepath \WORK
       ;
       pushd \XTPIPES || exit 1
       ;



More information about the tex4ht-commits mailing list.