float score = Float.NaN;
try
{
- score = new Float(gffColumns[6]).floatValue();
+ score = Float.valueOf(gffColumns[6]).floatValue();
} catch (NumberFormatException ex)
{
sf = new SequenceFeature(ft, desc, startPos, endPos, featureGroup);
AlignViewportI av = getViewport();
if (av != null)
{
- AlignmentI a = av.getAlignment();
- if (a != null)
+ if (av.getAlignment() != null)
{
- dataset = a.getDataset();
+ dataset = av.getAlignment().getDataset();
}
if (dataset == null)
{
// working in the applet context ?
- dataset = a;
+ dataset = av.getAlignment();
}
}
else
StringBuilder out = new StringBuilder(256);
- out.append(String.format("%s %d" + newline, GFF_VERSION,
- gffVersion == 0 ? 2 : gffVersion));
+ out.append(String.format("%s %d\n", GFF_VERSION, gffVersion == 0 ? 2 : gffVersion));
if (!includeNonPositionalFeatures
&& (visibleColours == null || visibleColours.isEmpty()))