Warnings fixed

GitOrigin-RevId: 7743c9081d040b1206704e8af2ccd4a0654a4530
This commit is contained in:
Tagir Valeev
2023-05-15 09:39:19 +02:00
committed by intellij-monorepo-bot
parent 8a0c4b05cd
commit c5ffc42959
4 changed files with 15 additions and 13 deletions

View File

@@ -1974,12 +1974,12 @@ public class Mappings {
}
if (interfacesChanged) {
for (final TypeRepr.AbstractType typ : diff.interfaces().removed()) {
myDelta.registerRemovedSuperClass(changedClass.name, ((TypeRepr.ClassType)typ).className);
for (final TypeRepr.ClassType typ : diff.interfaces().removed()) {
myDelta.registerRemovedSuperClass(changedClass.name, typ.className);
}
for (final TypeRepr.AbstractType typ : diff.interfaces().added()) {
myDelta.registerAddedSuperClass(changedClass.name, ((TypeRepr.ClassType)typ).className);
for (final TypeRepr.ClassType typ : diff.interfaces().added()) {
myDelta.registerAddedSuperClass(changedClass.name, typ.className);
}
}

View File

@@ -1143,9 +1143,9 @@ public final class UIUtil {
}
/**
* @param c1
* @param c2
* @param factor impact of color specified in @param c2
* @param c1 first color to mix
* @param c2 second color to mix
* @param factor impact of color specified in {@code c2}
* @return Mixed color
*/
public static @NotNull Color mix(@NotNull Color c1, final Color c2, final double factor) {

View File

@@ -369,7 +369,7 @@ public class Maven40ServerEmbedderImpl extends MavenServerEmbeddedBase {
}
}
@SuppressWarnings({"unchecked"})
@SuppressWarnings("unchecked")
public <T> T getComponent(Class<T> clazz) {
try {
return (T)myContainer.lookup(clazz.getName());
@@ -926,9 +926,9 @@ public class Maven40ServerEmbedderImpl extends MavenServerEmbeddedBase {
ArtifactRepository repository = repositorySystem.buildArtifactRepository(repo);
if (session != null) {
repositorySystem.injectMirror(session, Arrays.asList(repository));
repositorySystem.injectProxy(session, Arrays.asList(repository));
repositorySystem.injectAuthentication(session, Arrays.asList(repository));
repositorySystem.injectMirror(session, Collections.singletonList(repository));
repositorySystem.injectProxy(session, Collections.singletonList(repository));
repositorySystem.injectAuthentication(session, Collections.singletonList(repository));
}
return repository;
@@ -1061,6 +1061,7 @@ public class Maven40ServerEmbedderImpl extends MavenServerEmbeddedBase {
private void customizeComponents(@Nullable MavenWorkspaceMap workspaceMap) {
//noinspection EmptyTryBlock
try {
// TODO: implement
}
@@ -1070,6 +1071,7 @@ public class Maven40ServerEmbedderImpl extends MavenServerEmbeddedBase {
}
private void resetComponents() {
//noinspection EmptyTryBlock
try {
// TODO: implement
}

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.xml.analysis;
import com.intellij.DynamicBundle;
@@ -11,7 +11,7 @@ import java.util.function.Supplier;
public final class XmlAnalysisBundle {
public static final @NonNls String BUNDLE = "messages.XmlAnalysisBundle";
private static final DynamicBundle INSTANCE = new DynamicBundle(XmlAnalysisBundle.class, BUNDLE);;
private static final DynamicBundle INSTANCE = new DynamicBundle(XmlAnalysisBundle.class, BUNDLE);
private XmlAnalysisBundle() {
}