Fix project source to overcome bootstrap problem
This commit is contained in:
@@ -90,7 +90,7 @@ public class CallBasedArgumentGenerator extends ArgumentGenerator {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void reorderArgumentsIfNeeded(@NotNull List<? extends ArgumentAndDeclIndex> actualArgsWithDeclIndex) {
|
||||
protected void reorderArgumentsIfNeeded(@NotNull List actualArgsWithDeclIndex) {
|
||||
callGenerator.reorderArgumentsIfNeeded(actualArgsWithDeclIndex, valueParameterTypes);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1559,7 +1559,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void reorderArgumentsIfNeeded(@NotNull List<? extends ArgumentAndDeclIndex> args) {
|
||||
protected void reorderArgumentsIfNeeded(@NotNull List args) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -778,7 +778,7 @@ public class InlineCodegen extends CallGenerator {
|
||||
|
||||
@Override
|
||||
public void reorderArgumentsIfNeeded(
|
||||
@NotNull List<? extends ArgumentAndDeclIndex> actualArgsWithDeclIndex, @NotNull List<? extends Type> valueParameterTypes
|
||||
@NotNull List actualArgsWithDeclIndex, @NotNull List valueParameterTypes
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -157,7 +157,7 @@ public class TabledDescriptorRenderer {
|
||||
|
||||
@NotNull
|
||||
public Renderer<KotlinType> getTypeRenderer() {
|
||||
return Renderers.RENDER_TYPE;
|
||||
return (Renderer<KotlinType>) Renderers.RENDER_TYPE;
|
||||
}
|
||||
|
||||
protected void renderText(TextRenderer textRenderer, StringBuilder result) {
|
||||
|
||||
@@ -160,8 +160,8 @@ public class ResolveSession implements KotlinCodeAnalyzer, LazyClassContext {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Collection<FqName> getSubPackagesOf(
|
||||
@NotNull FqName fqName, @NotNull Function1<? super Name, ? extends Boolean> nameFilter
|
||||
public Collection getSubPackagesOf(
|
||||
@NotNull FqName fqName, @NotNull Function1 nameFilter
|
||||
) {
|
||||
LazyPackageDescriptor packageDescriptor = getPackageFragment(fqName);
|
||||
if (packageDescriptor == null) {
|
||||
|
||||
+2
-2
@@ -262,9 +262,9 @@ public class EnumEntrySyntheticClassDescriptor extends ClassDescriptorBase {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Collection<DeclarationDescriptor> getContributedDescriptors(
|
||||
public Collection getContributedDescriptors(
|
||||
@NotNull DescriptorKindFilter kindFilter,
|
||||
@NotNull Function1<? super Name, ? extends Boolean> nameFilter
|
||||
@NotNull Function1 nameFilter
|
||||
) {
|
||||
return allDescriptors.invoke();
|
||||
}
|
||||
|
||||
@@ -77,8 +77,8 @@ public class ErrorUtils {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Collection<FqName> getSubPackagesOf(
|
||||
@NotNull FqName fqName, @NotNull Function1<? super Name, ? extends Boolean> nameFilter
|
||||
public Collection getSubPackagesOf(
|
||||
@NotNull FqName fqName, @NotNull Function1 nameFilter
|
||||
) {
|
||||
return emptyList();
|
||||
}
|
||||
@@ -193,8 +193,8 @@ public class ErrorUtils {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Collection<DeclarationDescriptor> getContributedDescriptors(
|
||||
@NotNull DescriptorKindFilter kindFilter, @NotNull Function1<? super Name, ? extends Boolean> nameFilter
|
||||
public Collection getContributedDescriptors(
|
||||
@NotNull DescriptorKindFilter kindFilter, @NotNull Function1 nameFilter
|
||||
) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
@@ -244,8 +244,8 @@ public class ErrorUtils {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Collection<DeclarationDescriptor> getContributedDescriptors(
|
||||
@NotNull DescriptorKindFilter kindFilter, @NotNull Function1<? super Name, ? extends Boolean> nameFilter
|
||||
public Collection getContributedDescriptors(
|
||||
@NotNull DescriptorKindFilter kindFilter, @NotNull Function1 nameFilter
|
||||
) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
@@ -151,15 +151,15 @@ public class LockBasedStorageManager implements StorageManager {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public <T> NotNullLazyValue<T> createLazyValueWithPostCompute(
|
||||
@NotNull Function0<? extends T> computable,
|
||||
final Function1<? super Boolean, ? extends T> onRecursiveCall,
|
||||
@NotNull final Function1<? super T, ? extends Unit> postCompute
|
||||
public NotNullLazyValue createLazyValueWithPostCompute(
|
||||
@NotNull Function0 computable,
|
||||
final Function1 onRecursiveCall,
|
||||
@NotNull final Function1 postCompute
|
||||
) {
|
||||
return new LockBasedNotNullLazyValue<T>(computable) {
|
||||
return new LockBasedNotNullLazyValue(computable) {
|
||||
@NotNull
|
||||
@Override
|
||||
protected RecursionDetectedResult<T> recursionDetected(boolean firstTime) {
|
||||
protected RecursionDetectedResult recursionDetected(boolean firstTime) {
|
||||
if (onRecursiveCall == null) {
|
||||
return super.recursionDetected(firstTime);
|
||||
}
|
||||
@@ -167,7 +167,7 @@ public class LockBasedStorageManager implements StorageManager {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void postCompute(@NotNull T value) {
|
||||
protected void postCompute(@NotNull Object value) {
|
||||
postCompute.invoke(value);
|
||||
}
|
||||
};
|
||||
@@ -193,12 +193,12 @@ public class LockBasedStorageManager implements StorageManager {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public <T> NullableLazyValue<T> createNullableLazyValueWithPostCompute(
|
||||
@NotNull Function0<? extends T> computable, @NotNull final Function1<? super T, ? extends Unit> postCompute
|
||||
public NullableLazyValue createNullableLazyValueWithPostCompute(
|
||||
@NotNull Function0 computable, @NotNull final Function1 postCompute
|
||||
) {
|
||||
return new LockBasedLazyValue<T>(computable) {
|
||||
return new LockBasedLazyValue(computable) {
|
||||
@Override
|
||||
protected void postCompute(@Nullable T value) {
|
||||
protected void postCompute(@Nullable Object value) {
|
||||
postCompute.invoke(value);
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ public class HtmlTabledDescriptorRenderer extends TabledDescriptorRenderer {
|
||||
@NotNull
|
||||
@Override
|
||||
public Renderer<KotlinType> getTypeRenderer() {
|
||||
return IdeRenderers.HTML_RENDER_TYPE;
|
||||
return (Renderer<KotlinType>) IdeRenderers.HTML_RENDER_TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -197,7 +197,7 @@ public class KotlinBytecodeToolWindow extends JPanel implements Disposable {
|
||||
|
||||
BindingContext bindingContextForFile = resolutionFacade.analyzeFullyAndGetResult(Collections.singletonList(jetFile)).getBindingContext();
|
||||
|
||||
kotlin.Pair<BindingContext, List<? extends KtFile>> result = DebuggerUtils.INSTANCE.analyzeInlinedFunctions(
|
||||
kotlin.Pair<BindingContext, List<KtFile>> result = (kotlin.Pair) DebuggerUtils.INSTANCE.analyzeInlinedFunctions(
|
||||
resolutionFacade, bindingContextForFile, jetFile, !enableInline
|
||||
);
|
||||
|
||||
|
||||
+2
-2
@@ -390,7 +390,7 @@ public class MoveKotlinTopLevelDeclarationsDialog extends RefactoringDialog {
|
||||
}
|
||||
|
||||
private boolean isFullFileMove() {
|
||||
Map<KtFile, List<? extends KtNamedDeclaration>> fileToElements = CollectionsKt.groupBy(
|
||||
Map<KtFile, List<KtNamedDeclaration>> fileToElements = (Map) CollectionsKt.groupBy(
|
||||
getSelectedElementsToMove(),
|
||||
new Function1<KtNamedDeclaration, KtFile>() {
|
||||
@Override
|
||||
@@ -399,7 +399,7 @@ public class MoveKotlinTopLevelDeclarationsDialog extends RefactoringDialog {
|
||||
}
|
||||
}
|
||||
);
|
||||
for (Map.Entry<KtFile, List<? extends KtNamedDeclaration>> entry : fileToElements.entrySet()) {
|
||||
for (Map.Entry<KtFile, List<KtNamedDeclaration>> entry : fileToElements.entrySet()) {
|
||||
if (entry.getKey().getDeclarations().size() != entry.getValue().size()) return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user