X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Futil%2FForesterUtil.java;h=f144a81684894675f7a3442a03586b1560e9b619;hb=aff0b302cc19e0ee3e73bc4a87884b4591ac5f08;hp=6c14975fcbb2c74839120dcc85c3898a35f0ee22;hpb=0d0b9cde030d50b153eb6d1ff7ce13bc273edc17;p=jalview.git diff --git a/forester/java/src/org/forester/util/ForesterUtil.java b/forester/java/src/org/forester/util/ForesterUtil.java index 6c14975..f144a81 100644 --- a/forester/java/src/org/forester/util/ForesterUtil.java +++ b/forester/java/src/org/forester/util/ForesterUtil.java @@ -407,7 +407,7 @@ public final class ForesterUtil { } public static String[][] file22dArray( final File file ) throws IOException { - final List list = new ArrayList<>(); + final List list = new ArrayList(); final BufferedReader in = new BufferedReader( new FileReader( file ) ); String str; while ( ( str = in.readLine() ) != null ) { @@ -445,7 +445,7 @@ public final class ForesterUtil { } final public static List file2list( final File file ) throws IOException { - final List list = new ArrayList<>(); + final List list = new ArrayList(); final BufferedReader in = new BufferedReader( new FileReader( file ) ); String str; while ( ( str = in.readLine() ) != null ) { @@ -461,7 +461,7 @@ public final class ForesterUtil { } final public static SortedSet file2set( final File file ) throws IOException { - final SortedSet set = new TreeSet<>(); + final SortedSet set = new TreeSet(); final BufferedReader in = new BufferedReader( new FileReader( file ) ); String str; while ( ( str = in.readLine() ) != null ) { @@ -744,7 +744,7 @@ public final class ForesterUtil { } final public static SortedMap listToSortedCountsMap( final List list ) { - final SortedMap map = new TreeMap<>(); + final SortedMap map = new TreeMap(); for( final Object key : list ) { if ( !map.containsKey( key ) ) { map.put( key, 1 ); @@ -1176,7 +1176,7 @@ public final class ForesterUtil { //urlc.setRequestProperty( "User-Agent", "" ); final BufferedReader in = new BufferedReader( new InputStreamReader( urlc.getInputStream() ) ); String line; - final List result = new ArrayList<>(); + final List result = new ArrayList(); while ( ( line = in.readLine() ) != null ) { result.add( line ); } @@ -1211,7 +1211,7 @@ public final class ForesterUtil { protein.getSpecies().getSpeciesId(), protein.getLength() ); final List sorted = SurfacingUtil.sortDomainsWithAscendingConfidenceValues( protein ); - final List covered_positions = new ArrayList<>(); + final List covered_positions = new ArrayList(); for( final Domain domain : sorted ) { if ( ( ( max_allowed_overlap < 0 ) || ( ForesterUtil.calculateOverlap( domain, covered_positions ) <= max_allowed_overlap ) ) @@ -1686,7 +1686,7 @@ public final class ForesterUtil { public static List spliIntoPrefixes( final String prefix, final String separator ) { final String[] a = prefix.split( Pattern.quote( separator ) ); - final List l = new ArrayList<>(); + final List l = new ArrayList(); for( int i = 0; i < a.length; ++i ) { final StringBuilder sb = new StringBuilder(); for( int j = 0; j <= i; ++j ) {