Skip to content

Commit e629f60

Browse files
authored
fix: rename AbstractcSemanticTokensDataStreamProcessor to fix typo (#1353)
1 parent cd771ea commit e629f60

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

org.eclipse.lsp4e.jdt/src/org/eclipse/lsp4e/jdt/JavaSemanticTokensProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
import org.eclipse.jdt.annotation.Nullable;
1717
import org.eclipse.jdt.ui.text.java.ISemanticTokensProvider;
18-
import org.eclipse.lsp4e.operations.semanticTokens.AbstractcSemanticTokensDataStreamProcessor;
18+
import org.eclipse.lsp4e.operations.semanticTokens.AbstractSemanticTokensDataStreamProcessor;
1919
import org.eclipse.lsp4j.Position;
2020

21-
class JavaSemanticTokensProcessor extends AbstractcSemanticTokensDataStreamProcessor<ISemanticTokensProvider.TokenType, ISemanticTokensProvider.SemanticToken> {
21+
class JavaSemanticTokensProcessor extends AbstractSemanticTokensDataStreamProcessor<ISemanticTokensProvider.TokenType, ISemanticTokensProvider.SemanticToken> {
2222

2323
public JavaSemanticTokensProcessor(final Function<String, ISemanticTokensProvider.@Nullable TokenType> tokenTypeMapper,
2424
final Function<Position, Integer> offsetMapper) {

org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/semanticTokens/AbstractcSemanticTokensDataStreamProcessor.java renamed to org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/semanticTokens/AbstractSemanticTokensDataStreamProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
import org.eclipse.lsp4j.Position;
2121
import org.eclipse.lsp4j.SemanticTokensLegend;
2222

23-
public abstract class AbstractcSemanticTokensDataStreamProcessor<T, V> {
23+
public abstract class AbstractSemanticTokensDataStreamProcessor<T, V> {
2424

2525
private final Function<Position, Integer> offsetMapper;
2626
private final Function<String, @Nullable T> tokenTypeMapper;
2727

28-
public AbstractcSemanticTokensDataStreamProcessor(Function<Position, Integer> offsetMapper,
28+
protected AbstractSemanticTokensDataStreamProcessor(Function<Position, Integer> offsetMapper,
2929
Function<String, @Nullable T> tokenTypeMapper) {
3030
this.offsetMapper = offsetMapper;
3131
this.tokenTypeMapper = tokenTypeMapper;
@@ -78,7 +78,7 @@ public final List<V> getTokensData(final List<Integer> dataStream,
7878
return tokens;
7979
}
8080

81-
abstract protected @Nullable V createTokenData(@Nullable T tokenType, int offset, int length, List<String> tokenModifiers);
81+
protected abstract @Nullable V createTokenData(@Nullable T tokenType, int offset, int length, List<String> tokenModifiers);
8282

8383
private @Nullable String tokenType(final Integer data, final List<String> legend) {
8484
try {

org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/semanticTokens/SemanticTokensDataStreamProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* The Class SemanticTokensDataStreamProcessor translates a stream of integers
2626
* as defined by the LSP SemanticTokenRequests into a list of StyleRanges.
2727
*/
28-
public class SemanticTokensDataStreamProcessor extends AbstractcSemanticTokensDataStreamProcessor<IToken, StyleRange> {
28+
public class SemanticTokensDataStreamProcessor extends AbstractSemanticTokensDataStreamProcessor<IToken, StyleRange> {
2929

3030
/**
3131
* Creates a new instance of {@link SemanticTokensDataStreamProcessor}.

0 commit comments

Comments
 (0)