git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2245 checks for null added (in case EMBL fetch finds nothing)
[jalview.git]
/
src
/
jalview
/
ws
/
rest
/
InputType.java
diff --git
a/src/jalview/ws/rest/InputType.java
b/src/jalview/ws/rest/InputType.java
index
91fce18
..
69f1d95
100644
(file)
--- a/
src/jalview/ws/rest/InputType.java
+++ b/
src/jalview/ws/rest/InputType.java
@@
-46,6
+46,9
@@
import org.apache.http.entity.mime.content.StringBody;
*/
public abstract class InputType
{
*/
public abstract class InputType
{
+ private static final Pattern URL_PATTERN = Pattern
+ .compile("^([^=]+)=?'?([^']*)?'?");
+
/**
* not used yet
*/
/**
* not used yet
*/
@@
-209,7
+212,7
@@
public abstract class InputType
boolean valid = true;
for (String tok : tokenstring)
{
boolean valid = true;
for (String tok : tokenstring)
{
- Matcher mtch = Pattern.compile("^([^=]+)=?'?([^']*)?'?").matcher(tok);
+ Matcher mtch = URL_PATTERN.matcher(tok);
if (mtch.find())
{
try
if (mtch.find())
{
try