details: https://code.openbravo.com/erp/devel/pi/rev/624df4ecc1c6 changeset: 35692:624df4ecc1c6 user: Asier Lostalé <asier.lostale <at> openbravo.com> date: Thu Apr 18 09:20:58 2019 +0200 summary: related to issue 40629: added removal warning which to prevent warning in cli
When compiling in cli with JDK11, even having @SuppressWarnings("all"), removal warning was displayed. Adding @SupressWarnings("removal") to explicilty avoid this case. diffstat: src/org/openbravo/erpCommon/ad_callouts/HttpServletCalloutInformationProvider.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 0436f5f5c68c -r 624df4ecc1c6 src/org/openbravo/erpCommon/ad_callouts/HttpServletCalloutInformationProvider.java --- a/src/org/openbravo/erpCommon/ad_callouts/HttpServletCalloutInformationProvider.java Wed Apr 17 12:39:05 2019 +0200 +++ b/src/org/openbravo/erpCommon/ad_callouts/HttpServletCalloutInformationProvider.java Thu Apr 18 09:20:58 2019 +0200 @@ -51,7 +51,7 @@ // 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") +@SuppressWarnings({ "all", "removal" }) 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