This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Normalization of Java sources
On 01/10/2011 10:43 PM, Dr Andrew John Hughes wrote:
Back in June last year, I normalised the whitespace in the GNU Classpath
Java sources using a script written by Kelly O'Hair (attached) which was originally
used for the OpenJDK sources. To quote the script, it:
# Parses java files:
# 1. Removes from the end of lines spaces and TABs
# 2. Replaces TABs by spaces
# 3. Replaces all NewLine separators by Unix NewLine separators
# 4. Makes one and only one empty line at the end of each file
The attached patch does the same for gcj trunk, bringing the GNU Classpath
and libjava gcj sources back in sync. It also extends the normalization to the
gcj-local sources in libjava.
Normalise whitespace.
Following this patch's approval, I'll merge the remaining Classpath changes
over.
Ok for trunk?
I'd rather not, given the limited utility of the change and the fact
that it messes up the diffs, making life difficult for the maintenance
programmer.
However, we're going to get the changes anyway the next time there's
a merge from Classpath, and we want to minimize divergence with that
code base, so it's OK to do this on the Classpath source.
Andrew.