String chain = (chains != null && chains[pe] != null)
? chains[pe][se]
: null;
- SequenceI sq = asq.getDatasetSequence();
+ SequenceI sq = (asq.getDatasetSequence() == null) ? asq
+ : asq.getDatasetSequence();
if (sq.getAllPDBEntries() != null)
{
for (PDBEntry pdbentry : sq.getAllPDBEntries())
{ Integer.valueOf(pe).toString() }));
}
final String nullChain = "TheNullChain";
- List<SequenceI> s = new ArrayList<SequenceI>();
- List<String> c = new ArrayList<String>();
+ List<SequenceI> s = new ArrayList<>();
+ List<String> c = new ArrayList<>();
if (getChains() == null)
{
setChains(new String[getPdbCount()][]);
public synchronized PDBEntry[] addSequenceAndChain(PDBEntry[] pdbe,
SequenceI[][] seq, String[][] chns)
{
- List<PDBEntry> v = new ArrayList<PDBEntry>();
- List<int[]> rtn = new ArrayList<int[]>();
+ List<PDBEntry> v = new ArrayList<>();
+ List<int[]> rtn = new ArrayList<>();
for (int i = 0; i < getPdbCount(); i++)
{
v.add(getPdbEntry(i));
* Returns a readable description of all mappings for the wrapped pdbfile to
* any mapped sequences
*
- * @param pdbfile
- * @param seqs
- * @return
+ * @return
*/
public String printMappings()
{