git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
864c947
)
build fix
author
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Mon, 25 May 2015 15:04:22 +0000
(16:04 +0100)
committer
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Mon, 25 May 2015 15:04:22 +0000
(16:04 +0100)
src/jalview/io/JSONFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/JSONFile.java
b/src/jalview/io/JSONFile.java
index
28b8ed2
..
8d3cadd
100644
(file)
--- a/
src/jalview/io/JSONFile.java
+++ b/
src/jalview/io/JSONFile.java
@@
-88,6
+88,7
@@
public class JSONFile extends AlignFile
@Override
public String print()
{
@Override
public String print()
{
+ String jsonOutput = null;
try
{
if (getJsonExportSettings() == null)
try
{
if (getJsonExportSettings() == null)
@@
-179,14
+180,14
@@
public class JSONFile extends AlignFile
}
com.json.JSONObject generatedJSon = new com.json.JSONObject(
jsonAlignmentPojo);
}
com.json.JSONObject generatedJSon = new com.json.JSONObject(
jsonAlignmentPojo);
- String jsonOutput = generatedJSon.toString();
+ jsonOutput = generatedJSon.toString();
return jsonOutput.replaceAll("xstart", "xStart").replaceAll("xend",
"xEnd");
} catch (Exception e)
{
e.printStackTrace();
return jsonOutput.replaceAll("xstart", "xStart").replaceAll("xend",
"xEnd");
} catch (Exception e)
{
e.printStackTrace();
- throw e;
}
}
+ return jsonOutput;
}
public static List<SequenceFeaturesPojo> sequenceFeatureToJsonPojo(
}
public static List<SequenceFeaturesPojo> sequenceFeatureToJsonPojo(