Skip to content

Commit

Permalink
Merge pull request #5218 from arjantijms/fix_api_signature_failure
Browse files Browse the repository at this point in the history
Fix API signature failure
  • Loading branch information
arjantijms authored Mar 14, 2023
2 parents cf9eb26 + 180290a commit 7af6d18
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2022, 2023 Contributors to Eclipse Foundation.
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -376,7 +377,7 @@ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundE
* Class used to represent message severity levels in a typesafe enumeration.
* </p>
*/
public static class Severity implements Comparable<Severity> {
public static class Severity implements Comparable {

// ------------------------------------------------------- Constructors

Expand Down Expand Up @@ -417,8 +418,8 @@ private Severity(String newSeverityName) {
* @param other The other object to be compared to
*/
@Override
public int compareTo(Severity other) {
return ordinal - other.ordinal;
public int compareTo(Object other) {
return ordinal - ((Severity) other).ordinal;
}

/**
Expand Down

0 comments on commit 7af6d18

Please sign in to comment.