Skip to content
Snippets Groups Projects
Commit d373fddd authored by gmantele's avatar gmantele
Browse files

[ADQL] Replace a String.isEmpty() (Java 6) by String.length()==0 (Java 1.5).

parent edb10897
Branches
No related tags found
No related merge requests found
......@@ -389,7 +389,7 @@ public class ADQLParser implements ADQLParserConstants {
try{
if (file == null || file.isEmpty())
if (file == null || file.length()==0)
parser = new ADQLParser(System.in);
else if (file.matches(urlRegex))
parser = new ADQLParser((new java.net.URL(file)).openStream());
......
......@@ -433,7 +433,7 @@ public class ADQLParser {
try{
if (file == null || file.isEmpty())
if (file == null || file.length()==0)
parser = new ADQLParser(System.in);
else if (file.matches(urlRegex))
parser = new ADQLParser((new java.net.URL(file)).openStream());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment