diff options
Diffstat (limited to 'sca-java-2.x/trunk/samples/learning-more/binding-comet/autocomplete-webapp/src/main/java/org/apache/tuscany/sca')
-rw-r--r-- | sca-java-2.x/trunk/samples/learning-more/binding-comet/autocomplete-webapp/src/main/java/org/apache/tuscany/sca/sample/comet/CountryRepositoryImpl.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/samples/learning-more/binding-comet/autocomplete-webapp/src/main/java/org/apache/tuscany/sca/sample/comet/CountryRepositoryImpl.java b/sca-java-2.x/trunk/samples/learning-more/binding-comet/autocomplete-webapp/src/main/java/org/apache/tuscany/sca/sample/comet/CountryRepositoryImpl.java index 8be65c9147..57e2d3e214 100644 --- a/sca-java-2.x/trunk/samples/learning-more/binding-comet/autocomplete-webapp/src/main/java/org/apache/tuscany/sca/sample/comet/CountryRepositoryImpl.java +++ b/sca-java-2.x/trunk/samples/learning-more/binding-comet/autocomplete-webapp/src/main/java/org/apache/tuscany/sca/sample/comet/CountryRepositoryImpl.java @@ -53,9 +53,11 @@ public class CountryRepositoryImpl implements CountryRepository { .getResourceAsStream(fileName))); String line; while ((line = reader.readLine()) != null) { - Country c = new Country(); - c.setName(line); - countries.add(c); + if (!line.startsWith("#")) { + Country c = new Country(); + c.setName(line); + countries.add(c); + } } } catch (FileNotFoundException e) { e.printStackTrace(); |