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-3130 mark some deprecated methods in Regex as @Deprecated to stop warnings
[jalview.git]
/
src
/
MCview
/
PDBfile.java
diff --git
a/src/MCview/PDBfile.java
b/src/MCview/PDBfile.java
index
060de45
..
ebc52aa
100755
(executable)
--- a/
src/MCview/PDBfile.java
+++ b/
src/MCview/PDBfile.java
@@
-48,8
+48,7
@@
public class PDBfile extends StructureFile
public PDBfile(boolean addAlignmentAnnotations, boolean predictSecStr,
boolean externalSecStr, String dataObject,
public PDBfile(boolean addAlignmentAnnotations, boolean predictSecStr,
boolean externalSecStr, String dataObject,
- DataSourceType sourceType)
- throws IOException
+ DataSourceType sourceType) throws IOException
{
super(false, dataObject, sourceType);
addSettings(addAlignmentAnnotations, predictSecStr, externalSecStr);
{
super(false, dataObject, sourceType);
addSettings(addAlignmentAnnotations, predictSecStr, externalSecStr);
@@
-57,8
+56,7
@@
public class PDBfile extends StructureFile
}
public PDBfile(boolean addAlignmentAnnotations, boolean predictSecStr,
}
public PDBfile(boolean addAlignmentAnnotations, boolean predictSecStr,
- boolean externalSecStr,
- FileParse source) throws IOException
+ boolean externalSecStr, FileParse source) throws IOException
{
super(false, source);
addSettings(addAlignmentAnnotations, predictSecStr, externalSecStr);
{
super(false, source);
addSettings(addAlignmentAnnotations, predictSecStr, externalSecStr);
@@
-147,7
+145,7
@@
public class PDBfile extends StructureFile
Atom tmpatom = new Atom(line);
try
{
Atom tmpatom = new Atom(line);
try
{
- tmpchain = findChain(tmpatom.chain);
+ tmpchain = findChain(tmpatom.chain);
if (tmpatom.resNumIns.trim().equals(lastID))
{
// phosphorylated protein - seen both CA and P..
if (tmpatom.resNumIns.trim().equals(lastID))
{
// phosphorylated protein - seen both CA and P..
@@
-191,9
+189,8
@@
public class PDBfile extends StructureFile
} catch (OutOfMemoryError er)
{
System.out.println("OUT OF MEMORY LOADING PDB FILE");
} catch (OutOfMemoryError er)
{
System.out.println("OUT OF MEMORY LOADING PDB FILE");
- throw new IOException(
- MessageManager
- .getString("exception.outofmemory_loading_pdb_file"));
+ throw new IOException(MessageManager
+ .getString("exception.outofmemory_loading_pdb_file"));
} catch (NumberFormatException ex)
{
if (line != null)
} catch (NumberFormatException ex)
{
if (line != null)
@@
-205,8
+202,6
@@
public class PDBfile extends StructureFile
markCalcIds();
}
markCalcIds();
}
-
-
/**
* Process a parsed chain to construct and return a Sequence, and add it to
* the list of sequences parsed.
/**
* Process a parsed chain to construct and return a Sequence, and add it to
* the list of sequences parsed.
@@
-231,8
+226,8
@@
public class PDBfile extends StructureFile
public static String relocateCalcId(String calcId,
Hashtable<String, String> alreadyLoadedPDB) throws Exception
{
public static String relocateCalcId(String calcId,
Hashtable<String, String> alreadyLoadedPDB) throws Exception
{
- int s = CALC_ID_PREFIX.length(), end = calcId
- .indexOf(CALC_ID_PREFIX, s);
+ int s = CALC_ID_PREFIX.length(),
+ end = calcId.indexOf(CALC_ID_PREFIX, s);
String between = calcId.substring(s, end - 1);
return CALC_ID_PREFIX + alreadyLoadedPDB.get(between) + ":"
+ calcId.substring(end);
String between = calcId.substring(s, end - 1);
return CALC_ID_PREFIX + alreadyLoadedPDB.get(between) + ":"
+ calcId.substring(end);