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

henrib pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git


The following commit(s) were added to refs/heads/master by this push:
     new fcb8d2e  JEXL-295: doc, release-notes, changes Task #JEXL-295 - Add 
unary plus operator
fcb8d2e is described below

commit fcb8d2e0b4b1018f61b1c96541686916b2ed6651
Author: henrib <[email protected]>
AuthorDate: Fri Mar 29 15:47:05 2019 +0100

    JEXL-295: doc, release-notes, changes
    Task #JEXL-295 - Add unary plus operator
---
 RELEASE-NOTES.txt                  |  1 +
 src/site/xdoc/changes.xml          |  3 +++
 src/site/xdoc/reference/syntax.xml | 15 +++++++++++----
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index a721f9b..e99a179 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -48,6 +48,7 @@ What's new in 3.2:
 New Features in 3.2:
 ====================
 
+* JEXL-295:      Add unary plus operator
 * JEXL-275:      Allow safe navigation as option
 * JEXL-274:      Handle soft and hard stack overflow
 * JEXL-273:      Add do...while(...) loops
diff --git a/src/site/xdoc/changes.xml b/src/site/xdoc/changes.xml
index a3242ab..8182d25 100644
--- a/src/site/xdoc/changes.xml
+++ b/src/site/xdoc/changes.xml
@@ -26,6 +26,9 @@
     </properties>
     <body>
         <release version="3.2" date="unreleased">
+            <action dev="henrib" type="add" issue="JEXL-295"> 
+                Add unary plus operator
+            </action>
             <action dev="henrib" type="fix" issue="JEXL-291" due-to="David 
Costanzo"> 
                 Using sandbox prevents array-syntax lookup by number in Map
             </action>
diff --git a/src/site/xdoc/reference/syntax.xml 
b/src/site/xdoc/reference/syntax.xml
index 904edce..400d9b2 100644
--- a/src/site/xdoc/reference/syntax.xml
+++ b/src/site/xdoc/reference/syntax.xml
@@ -802,11 +802,18 @@
                     </td>
                 </tr>
                 <tr>
-                    <td>Negation</td>
+                    <td>Negate</td>
                     <td>
-                        The unary <code>-</code> operator is used.
-                        For example
-                        <code>-12</code>
+                        The unary <code>-</code> operator is used. It changes 
the sign of its numeric argument.
+                        For example <code>-12</code> or <code>-(a * b)</code>
+                    </td>
+                </tr>
+                <tr>
+                    <td>Positivize</td>
+                    <td>
+                        The unary <code>+</code> operator is used. It performs 
an integral promotion meaning
+                        that byte, short, char arguments will be promoted to 
integer as a result.
+                        For example  <code>+12</code> or <code>-(a * b)</code>
                     </td>
                 </tr>
                 <tr>

Reply via email to