Skip to content

Commit ef94679

Browse files
committed
Merge branch 'hotfix-1.1.21'
2 parents 1fce096 + b5063b5 commit ef94679

29 files changed

Lines changed: 740 additions & 812 deletions

pom.xml

Lines changed: 3 additions & 1 deletion
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.1.20</version>
8+
<version>1.1.21</version>
99
<inceptionYear>2003</inceptionYear>
1010
<description>
1111
<![CDATA[Data structures, math and statistics tools, and utilities that are often needed across projects.]]>
@@ -346,6 +346,8 @@
346346
<!-- Do not push to remote -->
347347
<pushRemote>false</pushRemote>
348348
<verbose>true</verbose>
349+
<useSnapshotInHotfix>true</useSnapshotInHotfix>
350+
<useSnapshotInRelease>true</useSnapshotInRelease>
349351
<!-- Branch naming schemes -->
350352
<gitFlowConfig>
351353
<productionBranch>master</productionBranch>

src/ubic/basecode/math/DescriptiveWithMissing.java

Lines changed: 344 additions & 339 deletions
Large diffs are not rendered by default.

src/ubic/basecode/math/linearmodels/DesignMatrix.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ private DoubleMatrix<String, String> addIntercept( int rows ) {
484484
* The primary method for actually setting up the design matrix. Redundant or constant columns are dropped (except
485485
* the intercept, if included)
486486
*
487-
* @param which column of the input matrix are we working on.
487+
* @param columnNum column of the input matrix are we working on.
488488
* @param factorValues of doubles or strings.
489489
* @param inputDesign
490490
* @param start 1 or 2. Set to 1 to get a column for each level (must not have an intercept in the model);

src/ubic/basecode/ontology/jena/AbstractOntologyResource.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*/
3636
abstract class AbstractOntologyResource implements OntologyResource {
3737

38-
protected static Logger log = LoggerFactory.getLogger( AbstractOntologyResource.class );
38+
protected static final Logger log = LoggerFactory.getLogger( AbstractOntologyResource.class );
3939

4040
private static final Comparator<OntologyResource> comparator = Comparator
4141
.comparing( OntologyResource::getScore, nullsLast( reverseOrder() ) )
@@ -60,6 +60,12 @@ public String getUri() {
6060
return res.getURI();
6161
}
6262

63+
@Override
64+
public String getLocalName() {
65+
return res.getLocalName();
66+
}
67+
68+
@Override
6369
public String getLabel() {
6470
String label = res.getLabel( "EN" );
6571
if ( label == null ) {
@@ -68,6 +74,16 @@ public String getLabel() {
6874
return label;
6975
}
7076

77+
@Nullable
78+
@Override
79+
public String getComment() {
80+
String label = res.getComment( "EN" );
81+
if ( label == null ) {
82+
label = res.getLabel( null );
83+
}
84+
return label;
85+
}
86+
7187
@Override
7288
public boolean isObsolete() {
7389
return res.hasLiteral( OWL2.deprecated, true );
@@ -94,9 +110,8 @@ public boolean equals( Object obj ) {
94110
if ( other.getLabel() != null ) return false;
95111
} else if ( !getLabel().equals( other.getLabel() ) ) return false;
96112
if ( getUri() == null ) {
97-
if ( other.getUri() != null ) return false;
98-
} else if ( !getUri().equals( other.getUri() ) ) return false;
99-
return true;
113+
return other.getUri() == null;
114+
} else return getUri().equals( other.getUri() );
100115
}
101116

102117
@Override

0 commit comments

Comments
 (0)