Re: svn commit: r927953 - in /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser: ASTIntegerLiteral.java ASTStringLiteral.java

2010-03-26 Thread sebb
On 26/03/2010, henrib  wrote:
>
>  The ctor is called by javacc generated code and I cant think of a way to make
>  it pass the proper argument.
>

Sorry, misread the patch - I thought the field was set in the ctor,
but the field is actually just a cache variable.

>  --
>  View this message in context: 
> http://n4.nabble.com/Re-svn-commit-r927953-in-commons-proper-jexl-trunk-src-main-java-org-apache-commons-jexl2-parser-ASTa-tp1692511p1692580.html
>  Sent from the Commons - Dev mailing list archive at Nabble.com.
>
>  -
>  To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
>  For additional commands, e-mail: dev-h...@commons.apache.org
>
>

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: svn commit: r927953 - in /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser: ASTIntegerLiteral.java ASTStringLiteral.java

2010-03-26 Thread henrib

The ctor is called by javacc generated code and I cant think of a way to make
it pass the proper argument.

-- 
View this message in context: 
http://n4.nabble.com/Re-svn-commit-r927953-in-commons-proper-jexl-trunk-src-main-java-org-apache-commons-jexl2-parser-ASTa-tp1692511p1692580.html
Sent from the Commons - Dev mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: svn commit: r927953 - in /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser: ASTIntegerLiteral.java ASTStringLiteral.java

2010-03-26 Thread sebb
On 26/03/2010, hen...@apache.org  wrote:
> Author: henrib
>  Date: Fri Mar 26 16:29:54 2010
>  New Revision: 927953
>
>  URL: http://svn.apache.org/viewvc?rev=927953&view=rev
>  Log:
>  Per Sebb's recommendation, made those final.

Actually, I meant that the field
 private Integer literal;
should be final, not the classes.

I have no view on whether the classes should be final or not.

>  Modified:
> 
> commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTIntegerLiteral.java
> 
> commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTStringLiteral.java
>
>  Modified: 
> commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTIntegerLiteral.java
>  URL: 
> http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTIntegerLiteral.java?rev=927953&r1=927952&r2=927953&view=diff
>  
> ==
>  --- 
> commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTIntegerLiteral.java
>  (original)
>  +++ 
> commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTIntegerLiteral.java
>  Fri Mar 26 16:29:54 2010
>  @@ -16,7 +16,7 @@
>   */
>   package org.apache.commons.jexl2.parser;
>
>  -public class ASTIntegerLiteral extends JexlNode implements 
> JexlNode.Literal {
>  +public final class ASTIntegerLiteral extends JexlNode implements 
> JexlNode.Literal {
>  /** The type literal value. */
>  private Integer literal;
>
>
>  Modified: 
> commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTStringLiteral.java
>  URL: 
> http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTStringLiteral.java?rev=927953&r1=927952&r2=927953&view=diff
>  
> ==
>  --- 
> commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTStringLiteral.java
>  (original)
>  +++ 
> commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/ASTStringLiteral.java
>  Fri Mar 26 16:29:54 2010
>  @@ -16,7 +16,7 @@
>   */
>   package org.apache.commons.jexl2.parser;
>
>  -public class ASTStringLiteral extends JexlNode implements 
> JexlNode.Literal {
>  +public final class ASTStringLiteral extends JexlNode implements 
> JexlNode.Literal {
>
>  public ASTStringLiteral(int id) {
>  super(id);
>
>
>

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org