hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ido Hadanny <ido.hada...@gmail.com>
Subject Re: eclipse formatting problem when using "apache hive formatter"
Date Thu, 28 Jul 2011 08:10:20 GMT
Ok, found the problem.

*before* you start developing on the hive codebase go here:
project -> properties -> java editor -> save actions -> additional actions
-> configure...
and change the "remove trailing whitespace" from "all lines" to "ignore
empty lines".

happy contributing, ido


On Thu, Jul 28, 2011 at 10:47 AM, Ido Hadanny <ido.hadanny@gmail.com> wrote:

> Hey,
> I'm using eclipse to edit the file
> /hive/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java.
> Whenever I'm saving it, eclipse changes every non-javadoc comment in that
> file.
> In each comment there's a line that contains only a *, then a blank space
> and then a LF.
> Eclipse changes it to a * immediately followed by a LF.
> I've double-checked, and my "java code style"->"formatter" settings are:
>
>    - enable project specific settings
>    - active profile = "Unmanaged profile 'Apache Hive Formatter'"
>
> What am I doing wrong??
>
> Example of the problem (invisible, use your cursor to see the difference :)
> :
>
> Before save:
>
>   /*
>    * (non-Javadoc)
>    *
>    * @see java.sql.PreparedStatement#addBatch()
>    */
>
> After save:
>
>   /*
>    * (non-Javadoc)
>    *
>    * @see java.sql.PreparedStatement#addBatch()
>    */
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message