JAL-3026 Java bug associated with File/String mods
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Fri, 24 Aug 2018 07:35:44 +0000 (02:35 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Fri, 24 Aug 2018 07:35:44 +0000 (02:35 -0500)
in AlignFrame lines 4586,4592

src/jalview/gui/AlignFrame.java

index a59cc13..3db81f1 100644 (file)
@@ -4583,13 +4583,13 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
                   for (SequenceI toassoc : (SequenceI[]) fm[2])
                   {
                     PDBEntry pe = new AssociatePdbFileWithSeq()
-                            .associatePdbWithSeq((String) fm[0],
+                            .associatePdbWithSeq(fm[0].toString(),
                                     (DataSourceType) fm[1], toassoc, false,
                                     Desktop.instance);
                     if (pe != null)
                     {
                       System.err.println("Associated file : "
-                              + ((String) fm[0]) + " with "
+                              + (fm[0].toString()) + " with "
                               + toassoc.getDisplayId(true));
                       assocfiles++;
                     }