fix small issues

git-svn-id: https://osmand.googlecode.com/svn/trunk@741 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-12-01 22:10:38 +00:00
parent df6172d76c
commit ac365ab99f
2 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ public class Version {
public static final String APP_NAME = "OsmAnd"; //$NON-NLS-1$
public static final String APP_MAP_CREATOR_NAME = "OsmAndMapCreator"; //$NON-NLS-1$
public static final String APP_VERSION = "0.5.1"; //$NON-NLS-1$
public static final String APP_DESCRIPTION = "alpha (b5)"; //$NON-NLS-1$
public static final String APP_DESCRIPTION = "alpha (b6)"; //$NON-NLS-1$
public static final boolean VELCOM_EDITION = false;
public static final String APP_NAME_VERSION = APP_NAME + " " + APP_VERSION; //$NON-NLS-1$

View file

@ -87,13 +87,13 @@ public class DownloaderIndexFromGoogleCode {
size = files.size();
try {
URL url = new URL(
"http://code.google.com/p/osmand/downloads/list?num=" + num + "&start=" + start); //$NON-NLS-1$
"http://code.google.com/p/osmand/downloads/list?num=" + num + "&start=" + start); //$NON-NLS-1$ //$NON-NLS-2$
reader = new BufferedReader(new InputStreamReader(url
.openStream()));
String s = null;
String prevFile = null;
while ((s = reader.readLine()) != null) {
if (s.indexOf("files") != -1 || s.indexOf("{") != -1) {
if (s.indexOf("files") != -1 || s.indexOf("{") != -1) { //$NON-NLS-1$ //$NON-NLS-2$
for (String extension : ext) {
prevFile = getIndexFiles(files, s, prevFile, extension);
}
@ -109,7 +109,7 @@ public class DownloaderIndexFromGoogleCode {
try {
reader.close();
} catch (IOException e) {
log.error("Error closing stream to url.", e);
log.error("Error closing stream to url.", e); //$NON-NLS-1$
}
}
}