Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ Fixed issues: <https://github.com/eclipse-lsp4j/lsp4j/milestone/37?closed=1>

Breaking API changes:

* Removed deprecated API [#874](https://github.com/eclipse-lsp4j/lsp4j/issues/874)
* Removed deprecated convenience constructors in protocol files [#875](https://github.com/eclipse-lsp4j/lsp4j/issues/875)
* Removed deprecated get/set properties in FormattingOptions [#880](https://github.com/eclipse-lsp4j/lsp4j/issues/880)
* Removed deprecated LanguageServerAPI annotation [#876](https://github.com/eclipse-lsp4j/lsp4j/issues/876)
* Removed deprecated static methods in the Either class, instead use TypeUtils helper methods [#877](https://github.com/eclipse-lsp4j/lsp4j/issues/877)
* Removed deprecated factories [#878](https://github.com/eclipse-lsp4j/lsp4j/issues/878)
* Removed deprecated ResponseErrorCode.serverNotInitialized, use ResponseErrorCode.ServerNotInitialized instead [#879](https://github.com/eclipse-lsp4j/lsp4j/issues/879)
* Removed deprecated org.eclipse.lsp4j.websocket. Please upgrade to using Jakarta or remain with LSP4J version 0.x.x [#647](https://github.com/eclipse-lsp4j/lsp4j/issues/647)
japicmp report: <https://download.eclipse.org/lsp4j/builds/main/japicmp-report/>

### [v0.24.0 (Jan 2025)](https://github.com/eclipse-lsp4j/lsp4j/releases/tag/v0.24.0)
Expand Down
1 change: 0 additions & 1 deletion gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ ext.versions = [
'gson': '[2.9.1,3.0)',

'websocket_jakarta': '2.0.0',
'websocket': '1.0',
'junit': '4.13.2',
'archunit': '1.2.1'
]

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -104,121 +104,4 @@ public String toString() {
builder.append(" right = ").append(right).append(System.lineSeparator());
return builder.append("]").toString();
}

/**
* Return a left disjoint type if the given type is either.
*
* @deprecated Use {@link org.eclipse.lsp4j.jsonrpc.json.adapters.TypeUtils#getElementTypes(Type, Class, Class)} instead
*/
@Deprecated
public static Type getLeftDisjointType(Type type) {
if (isEither(type)) {
if (type instanceof ParameterizedType) {
final var parameterizedType = (ParameterizedType) type;
return parameterizedType.getActualTypeArguments()[0];
}
if (type instanceof Class) {
final Class<?> cls = (Class<?>) type;
return cls.getTypeParameters()[0];
}
}
return null;
}

/**
* Return a right disjoint type if the given type is either.
*
* @deprecated Use {@link org.eclipse.lsp4j.jsonrpc.json.adapters.TypeUtils#getElementTypes(Type, Class, Class)} instead
*/
@Deprecated
public static Type getRightDisjointType(Type type) {
if (isEither(type)) {
if (type instanceof ParameterizedType) {
final var parameterizedType = (ParameterizedType) type;
return parameterizedType.getActualTypeArguments()[1];
}
if (type instanceof Class) {
final Class<?> cls = (Class<?>) type;
return cls.getTypeParameters()[1];
}
}
return null;
}

/**
* Return all disjoint types.
*
* @deprecated Use {@link org.eclipse.lsp4j.jsonrpc.json.adapters.TypeUtils#getExpectedTypes(Type)} instead
*/
@Deprecated
public static Collection<Type> getAllDisjoinTypes(Type type) {
return collectDisjoinTypes(type, new ArrayList<>());
}

@Deprecated
protected static Collection<Type> collectDisjoinTypes(Type type, Collection<Type> types) {
if (isEither(type)) {
if (type instanceof ParameterizedType) {
return collectDisjoinTypes((ParameterizedType) type, types);
}
if (type instanceof Class) {
return collectDisjoinTypes((Class<?>) type, types);
}
}
types.add(type);
return types;
}

@Deprecated
protected static Collection<Type> collectDisjoinTypes(ParameterizedType type, Collection<Type> types) {
for (Type typeArgument : type.getActualTypeArguments()) {
collectDisjoinTypes(typeArgument, types);
}
return types;
}

@Deprecated
protected static Collection<Type> collectDisjoinTypes(Class<?> type, Collection<Type> types) {
for (Type typeParameter : type.getTypeParameters()) {
collectDisjoinTypes(typeParameter, types);
}
return types;
}

/**
* Test whether the given type is Either.
*
* @deprecated Use {@link org.eclipse.lsp4j.jsonrpc.json.adapters.TypeUtils#isEither(Type)} instead
*/
@Deprecated
public static boolean isEither(Type type) {
if (type instanceof ParameterizedType) {
return isEither((ParameterizedType) type);
}
if (type instanceof Class) {
return isEither((Class<?>) type);
}
return false;
}

/**
* Test whether the given type is Either.
*
* @deprecated Use {@link org.eclipse.lsp4j.jsonrpc.json.adapters.TypeUtils#isEither(Type)} instead
*/
@Deprecated
public static boolean isEither(ParameterizedType type) {
return isEither(type.getRawType());
}

/**
* Test whether the given class is Either.
*
* @deprecated Use {@link org.eclipse.lsp4j.jsonrpc.json.adapters.TypeUtils#isEither(Type)} instead
*/
@Deprecated
public static boolean isEither(Class<?> cls) {
return Either.class.isAssignableFrom(cls);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ public enum ResponseErrorCode {
*/
jsonrpcReservedErrorRangeStart(-32099),

/**
* @deprecated Use {@link #ServerNotInitialized}
*/
@Deprecated
serverNotInitialized(-32002),

/**
* Error code indicating that a server received a notification or
* request before the server has received the {@code initialize} request.
Expand Down

This file was deleted.

24 changes: 0 additions & 24 deletions org.eclipse.lsp4j.websocket/build.gradle

This file was deleted.

This file was deleted.

Loading
Loading