Skip to content

Commit f4665bc

Browse files
committed
Merge branch 'release-1.1'
2 parents e636cdd + b2bb343 commit f4665bc

7 files changed

Lines changed: 166 additions & 112 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<name>baseCode</name>
66
<groupId>baseCode</groupId>
77
<artifactId>baseCode</artifactId>
8-
<version>1.0.32</version>
8+
<version>1.1</version>
99
<inceptionYear>2003</inceptionYear>
1010
<description>
1111
<![CDATA[Data structures, math and statistics tools, and utilities that are often needed across projects.]]>
@@ -49,7 +49,7 @@
4949
<dependency>
5050
<groupId>org.apache.poi</groupId>
5151
<artifactId>poi</artifactId>
52-
<version>5.0.0</version>
52+
<version>5.1.0</version>
5353
</dependency>
5454
<dependency>
5555
<groupId>colt</groupId>

src/ubic/basecode/dataStructure/Link.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package ubic.basecode.dataStructure;
2020

2121
import java.text.NumberFormat;
22+
import java.util.Locale;
2223

2324
/**
2425
* Implements comparable, which sorts by the 'x' coordinate and then secondarily by the 'y' coordinate. (This behavior
@@ -96,7 +97,7 @@ public int hashCode() {
9697
*/
9798
@Override
9899
public String toString() {
99-
return super.toString() + "\t" + NumberFormat.getInstance().format( this.weight );
100+
return super.toString() + "\t" + NumberFormat.getInstance( Locale.ENGLISH ).format( this.weight );
100101
}
101102

102103
}

src/ubic/basecode/dataStructure/matrix/DoubleMatrix.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
*/
1919
package ubic.basecode.dataStructure.matrix;
2020

21-
import java.util.ArrayList;
22-
import java.util.Collections;
23-
import java.util.Comparator;
24-
import java.util.List;
21+
import java.util.*;
2522

2623
import cern.colt.list.DoubleArrayList;
2724
import cern.colt.matrix.DoubleMatrix1D;
@@ -188,7 +185,7 @@ public final String toString() {
188185
if ( Double.isNaN( value ) ) {
189186
buf.append( "\t" );
190187
} else {
191-
buf.append( "\t" + String.format( "%.4g", value ) );
188+
buf.append( "\t" + String.format( Locale.ENGLISH, "%.4g", value ) );
192189
}
193190
}
194191
buf.append( "\n" );

src/ubic/basecode/io/reader/DoubleMatrixReader.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
import java.text.DecimalFormat;
2727
import java.text.NumberFormat;
2828
import java.text.ParseException;
29-
import java.util.Collection;
30-
import java.util.HashSet;
31-
import java.util.Iterator;
32-
import java.util.List;
33-
import java.util.Vector;
29+
import java.util.*;
3430

3531
import org.apache.commons.lang3.StringUtils;
3632

@@ -47,7 +43,7 @@
4743
*/
4844
public class DoubleMatrixReader extends AbstractMatrixReader<DoubleMatrix<String, String>, Double> {
4945

50-
private static NumberFormat nf = NumberFormat.getInstance();
46+
private static NumberFormat nf = NumberFormat.getInstance( Locale.ENGLISH );
5147
static {
5248
if ( nf instanceof DecimalFormat ) {
5349
// ( ( DecimalFormat ) nf ).setDecimalSeparatorAlwaysShown( true );

src/ubic/basecode/io/reader/SparseDoubleMatrixReader.java

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@
2222
import java.io.IOException;
2323
import java.io.InputStream;
2424
import java.io.InputStreamReader;
25-
import java.util.Collection;
26-
import java.util.Collections;
27-
import java.util.HashMap;
28-
import java.util.HashSet;
29-
import java.util.Iterator;
30-
import java.util.List;
31-
import java.util.Map;
32-
import java.util.Scanner;
33-
import java.util.Set;
34-
import java.util.StringTokenizer;
35-
import java.util.Vector;
25+
import java.util.*;
3626

3727
import ubic.basecode.dataStructure.matrix.DoubleMatrix;
3828
import ubic.basecode.dataStructure.matrix.SparseDoubleMatrix;
@@ -179,7 +169,7 @@ public DoubleMatrix<String, String> readJW( InputStream stream ) throws IOExcept
179169

180170
BufferedReader dis = new BufferedReader( new InputStreamReader( stream ) );
181171

182-
Scanner ff = new Scanner( dis );
172+
Scanner ff = new Scanner( dis ).useLocale( Locale.ENGLISH );
183173

184174
int index = 0;
185175
int amount = 0;

0 commit comments

Comments
 (0)