details:   https://code.openbravo.com/erp/devel/pi/rev/d91acd577d96
changeset: 35671:d91acd577d96
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Wed Apr 17 09:51:44 2019 +0200
summary:   fixed issue 40629: suppressed jdk11 removal warnings

  Which appeared in HttpServletCalloutInformationProvider class that uses 
nashorn.

diffstat:

 
src/org/openbravo/erpCommon/ad_callouts/HttpServletCalloutInformationProvider.java
 |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r bdd63e1a8341 -r d91acd577d96 
src/org/openbravo/erpCommon/ad_callouts/HttpServletCalloutInformationProvider.java
--- 
a/src/org/openbravo/erpCommon/ad_callouts/HttpServletCalloutInformationProvider.java
        Tue Apr 16 18:32:16 2019 +0200
+++ 
b/src/org/openbravo/erpCommon/ad_callouts/HttpServletCalloutInformationProvider.java
        Wed Apr 17 09:51:44 2019 +0200
@@ -46,6 +46,12 @@
  * @author inigo.sanchez
  *
  */
+
+// Since JDK11 Nashorn is deprecated for removal. Suppressing all warnings to 
prevent removal
+// warning when compiling with JDK11+, as we still support JDK8+ we cannot 
suppress just removal
+// warning because when compiling with lower versions an unnecessary suppress 
warnings warning would
+// appear.
+@SuppressWarnings("all")
 public class HttpServletCalloutInformationProvider implements 
CalloutInformationProvider {
   private static final Logger log = LogManager.getLogger();
 


_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to