Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix API signature failure #5218

Merged
merged 1 commit into from
Mar 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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