|
From: <th...@us...> - 2007-01-18 00:51:14
|
Revision: 1971
http://svn.sourceforge.net/pcgen/?rev=1971&view=rev
Author: thpr
Date: 2007-01-17 16:51:14 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
Fix (I think) for [ 1638154 ] [i18n] UTF-8 Skills LST cannot take comment lines
Modified Paths:
--------------
Trunk/pcgen/code/src/java/pcgen/persistence/lst/LstFileLoader.java
Modified: Trunk/pcgen/code/src/java/pcgen/persistence/lst/LstFileLoader.java
===================================================================
--- Trunk/pcgen/code/src/java/pcgen/persistence/lst/LstFileLoader.java 2007-01-17 22:44:01 UTC (rev 1970)
+++ Trunk/pcgen/code/src/java/pcgen/persistence/lst/LstFileLoader.java 2007-01-18 00:51:14 UTC (rev 1971)
@@ -56,7 +56,7 @@
public abstract class LstFileLoader extends Observable
{
/** The String that represents the start of a line comment. */
- public static final String LINE_COMMENT_STR = "#"; //$NON-NLS-1$
+ public static final char LINE_COMMENT_CHAR = '#'; //$NON-NLS-1$
/**
* This method loads the given list of LST files.
@@ -137,7 +137,7 @@
*/
protected final boolean isComment(String line)
{
- return (line.length() == 0) || (line.startsWith(LINE_COMMENT_STR));
+ return (line.length() == 0) || (line.charAt(0) == LINE_COMMENT_CHAR);
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|