Hi Simo, there is a checkstyle rule, take a look at http://goo.gl/uU2Cu and http://goo.gl/1zd1v Have a nice WE you too.
Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 29 October 2011 21:52, Simone Tripodi <simonetrip...@apache.org> wrote: >> There's quite a >> bit of that "retro" feel hanging around the OGNL code, I'll be joining >> Maurizio to help freshen that up a little in the coming days. > > Sure, just to cite myself: > >> Anyway I like it, variables prefixed with '_' look so '90 to me :) > > anyway I'm not just sure how it is related to checkstyle ;) > Simo > > http://people.apache.org/~simonetripodi/ > http://simonetripodi.livejournal.com/ > http://twitter.com/simonetripodi > http://www.99soft.org/ > > > > On Sat, Oct 29, 2011 at 9:37 PM, Adrian Cumiskey > <adrian.cumis...@gmail.com> wrote: >> I really wish that I wasn't old enough to remember the days of 1-3 character >> variable names and C++ style '_' variable name prefixing! There's quite a >> bit of that "retro" feel hanging around the OGNL code, I'll be joining >> Maurizio to help freshen that up a little in the coming days. >> >> Cheers, Adrian. >> >> On 29 October 2011 06:46, Simone Tripodi <simonetrip...@apache.org> wrote: >> >>> Hola Mau >>> that's a fields renaming more than checkstyle issues, just to properly >>> record changes. >>> Anyway I like it, variables prefixed with '_' look so '90 to me :) >>> Thanks for taking care! >>> Simo >>> >>> http://people.apache.org/~simonetripodi/ >>> http://simonetripodi.livejournal.com/ >>> http://twitter.com/simonetripodi >>> http://www.99soft.org/ >>> >>> >>> >>> On Sat, Oct 29, 2011 at 1:21 PM, <mcucchi...@apache.org> wrote: >>> > Author: mcucchiara >>> > Date: Sat Oct 29 11:21:20 2011 >>> > New Revision: 1194875 >>> > >>> > URL: http://svn.apache.org/viewvc?rev=1194875&view=rev >>> > Log: >>> > OGNL-11: fixed checkstyle errors >>> > >>> > Modified: >>> > >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/LocalReferenceImpl.java >>> > >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/OrderedReturn.java >>> > >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/package-info.java >>> > >>> > Modified: >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/LocalReferenceImpl.java >>> > URL: >>> http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/LocalReferenceImpl.java?rev=1194875&r1=1194874&r2=1194875&view=diff >>> > >>> ============================================================================== >>> > --- >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/LocalReferenceImpl.java >>> (original) >>> > +++ >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/LocalReferenceImpl.java >>> Sat Oct 29 11:21:20 2011 >>> > @@ -26,17 +26,17 @@ public class LocalReferenceImpl >>> > implements LocalReference >>> > { >>> > >>> > - private final String _name; >>> > + private final String name; >>> > >>> > - private final Class<?> _type; >>> > + private final Class<?> type; >>> > >>> > - private final String _expression; >>> > + private final String expression; >>> > >>> > public LocalReferenceImpl( String name, String expression, Class<?> >>> type ) >>> > { >>> > - _name = name; >>> > - _type = type; >>> > - _expression = expression; >>> > + this.name = name; >>> > + this.type = type; >>> > + this.expression = expression; >>> > } >>> > >>> > /** >>> > @@ -44,7 +44,7 @@ public class LocalReferenceImpl >>> > */ >>> > public String getName() >>> > { >>> > - return _name; >>> > + return name; >>> > } >>> > >>> > /** >>> > @@ -52,7 +52,7 @@ public class LocalReferenceImpl >>> > */ >>> > public String getExpression() >>> > { >>> > - return _expression; >>> > + return expression; >>> > } >>> > >>> > /** >>> > @@ -60,7 +60,7 @@ public class LocalReferenceImpl >>> > */ >>> > public Class<?> getType() >>> > { >>> > - return _type; >>> > + return type; >>> > } >>> > >>> > /** >>> > @@ -80,15 +80,15 @@ public class LocalReferenceImpl >>> > >>> > LocalReferenceImpl that = (LocalReferenceImpl) o; >>> > >>> > - if ( _expression != null ? !_expression.equals( that._expression >>> ) : that._expression != null ) >>> > + if ( expression != null ? !expression.equals( that.expression ) >>> : that.expression != null ) >>> > { >>> > return false; >>> > } >>> > - if ( _name != null ? !_name.equals( that._name ) : that._name != >>> null ) >>> > + if ( name != null ? !name.equals( that.name ) : that.name != >>> null ) >>> > { >>> > return false; >>> > } >>> > - if ( _type != null ? !_type.equals( that._type ) : that._type != >>> null ) >>> > + if ( type != null ? !type.equals( that.type ) : that.type != >>> null ) >>> > { >>> > return false; >>> > } >>> > @@ -103,9 +103,9 @@ public class LocalReferenceImpl >>> > public int hashCode() >>> > { >>> > int result; >>> > - result = ( _name != null ? _name.hashCode() : 0 ); >>> > - result = 31 * result + ( _type != null ? _type.hashCode() : 0 ); >>> > - result = 31 * result + ( _expression != null ? >>> _expression.hashCode() : 0 ); >>> > + result = ( name != null ? name.hashCode() : 0 ); >>> > + result = 31 * result + ( type != null ? type.hashCode() : 0 ); >>> > + result = 31 * result + ( expression != null ? >>> expression.hashCode() : 0 ); >>> > return result; >>> > } >>> > >>> > @@ -115,7 +115,7 @@ public class LocalReferenceImpl >>> > @Override >>> > public String toString() >>> > { >>> > - return "LocalReferenceImpl[" + "_name='" + _name + '\'' + '\n' + >>> ", _type=" + _type + '\n' + ", _expression='" >>> > - + _expression + '\'' + '\n' + ']'; >>> > + return "LocalReferenceImpl[" + "_name='" + name + '\'' + '\n' + >>> ", _type=" + type + '\n' + ", _expression='" >>> > + + expression + '\'' + '\n' + ']'; >>> > } >>> > } >>> > >>> > Modified: >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/OrderedReturn.java >>> > URL: >>> http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/OrderedReturn.java?rev=1194875&r1=1194874&r2=1194875&view=diff >>> > >>> ============================================================================== >>> > --- >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/OrderedReturn.java >>> (original) >>> > +++ >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/OrderedReturn.java >>> Sat Oct 29 11:21:20 2011 >>> > @@ -19,10 +19,10 @@ package org.apache.commons.ognl.enhance; >>> > * under the License. >>> > */ >>> > >>> > -import org.apache.commons.ognl.Node; >>> > >>> > /** >>> > - * Marks an ognl expression {@link Node} as needing to have the return >>> portion of a getter method happen in a specific >>> > + * Marks an ognl expression {@link org.apache.commons.ognl.Node} as >>> needing to have the return portion of a getter >>> > + * method happen in a specific >>> > * part of the generated expression vs just having the whole expression >>> returned in one chunk. >>> > */ >>> > public interface OrderedReturn >>> > >>> > Modified: >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/package-info.java >>> > URL: >>> http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/package-info.java?rev=1194875&r1=1194874&r2=1194875&view=diff >>> > >>> ============================================================================== >>> > --- >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/package-info.java >>> (original) >>> > +++ >>> commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/enhance/package-info.java >>> Sat Oct 29 11:21:20 2011 >>> > @@ -1,6 +1,3 @@ >>> > -/** >>> > - * Enhanced basic Java components. >>> > - */ >>> > package org.apache.commons.ognl.enhance; >>> > >>> > /* >>> > @@ -21,3 +18,7 @@ package org.apache.commons.ognl.enhance; >>> > * specific language governing permissions and limitations >>> > * under the License. >>> > */ >>> > + >>> > +/* >>> > + * Enhanced basic Java components. >>> > + */ >>> > >>> > >>> > >>> >>> --------------------------------------------------------------------- >>> 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org