Skip to content

Commit 651ca8e

Browse files
committed
switch to java 8 syntax to make github test workflow pass #28
1 parent 1ad0ae2 commit 651ca8e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/beast/base/evolution/substitutionmodel/ComplexSubstitutionModel.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public void initAndValidate() {
8080
* @return > 0 if data type can be inferred <= 0 if data type cannot be inferred
8181
*/
8282
private int getNrOfStatesInData(BEASTInterface o) {
83-
if (o instanceof GenericTreeLikelihood tl) {
83+
if (o instanceof GenericTreeLikelihood) {
84+
GenericTreeLikelihood tl = (GenericTreeLikelihood) o;
8485
Alignment data = tl.dataInput.get();
8586
if (data.getDataType() == null) {
8687
if (data.userDataTypeInput.get() != null) {

0 commit comments

Comments
 (0)