3636
3737/**
3838 *
39- * @author Scooter Willis
39+ * @author Scooter Willis
4040 */
4141public class GeneFeatureHelper {
4242
@@ -418,7 +418,7 @@ static public void addGmodGFF3GeneFeatures(Map<String, ChromosomeSequence> chrom
418418 String startCodonName = "" ;
419419 String stopCodonName = "" ;
420420 FeatureList startCodonList = mRNAChildren .selectByType ("five_prime_UTR" );
421- if (startCodonList != null && startCodonList .size () > 0 ) {
421+ if (startCodonList != null && ! startCodonList .isEmpty () ) {
422422 startCodon = startCodonList .get (0 );
423423 if (strand == Strand .NEGATIVE ) {
424424 startCodonBegin = startCodon .location ().bioEnd ();
@@ -430,7 +430,7 @@ static public void addGmodGFF3GeneFeatures(Map<String, ChromosomeSequence> chrom
430430
431431 FeatureList stopCodonList = mRNAChildren .selectByType ("three_prime_UTR" );
432432
433- if (stopCodonList != null && stopCodonList .size () > 0 ) {
433+ if (stopCodonList != null && ! stopCodonList .isEmpty () ) {
434434 stopCodon = stopCodonList .get (0 );
435435 if (strand == Strand .NEGATIVE ) {
436436 stopCodonEnd = stopCodon .location ().bioStart ();
@@ -577,7 +577,7 @@ static public void addGlimmerGFF3GeneFeatures(Map<String, ChromosomeSequence> ch
577577 String startCodonName = "" ;
578578 String stopCodonName = "" ;
579579 FeatureList startCodonList = gene .selectByAttribute ("Note" , "initial-exon" );
580- if (startCodonList != null && startCodonList .size () > 0 ) {
580+ if (startCodonList != null && ! startCodonList .isEmpty () ) {
581581 startCodon = startCodonList .get (0 );
582582 if (strand == Strand .NEGATIVE ) {
583583 startCodonBegin = startCodon .location ().bioEnd ();
@@ -589,7 +589,7 @@ static public void addGlimmerGFF3GeneFeatures(Map<String, ChromosomeSequence> ch
589589
590590 FeatureList stopCodonList = gene .selectByAttribute ("Note" , "final-exon" );
591591
592- if (stopCodonList != null && stopCodonList .size () > 0 ) {
592+ if (stopCodonList != null && ! stopCodonList .isEmpty () ) {
593593 stopCodon = stopCodonList .get (0 );
594594 if (strand == Strand .NEGATIVE ) {
595595 stopCodonEnd = stopCodon .location ().bioStart ();
@@ -723,7 +723,7 @@ static public void addGeneMarkGTFGeneFeatures(Map<String, ChromosomeSequence> ch
723723 String startCodonName = "" ;
724724 String stopCodonName = "" ;
725725 FeatureList startCodonList = transcriptFeature .selectByType ("start_codon" );
726- if (startCodonList != null && startCodonList .size () > 0 ) {
726+ if (startCodonList != null && ! startCodonList .isEmpty () ) {
727727 startCodon = startCodonList .get (0 );
728728 if (strand == Strand .POSITIVE ) {
729729 startCodonBegin = startCodon .location ().bioStart ();
@@ -735,7 +735,7 @@ static public void addGeneMarkGTFGeneFeatures(Map<String, ChromosomeSequence> ch
735735
736736 FeatureList stopCodonList = transcriptFeature .selectByType ("stop_codon" );
737737
738- if (stopCodonList != null && stopCodonList .size () > 0 ) {
738+ if (stopCodonList != null && ! stopCodonList .isEmpty () ) {
739739 stopCodon = stopCodonList .get (0 );
740740 if (strand == Strand .POSITIVE ) {
741741 stopCodonEnd = stopCodon .location ().bioEnd ();
0 commit comments