Minor. Remove obsolete supressions
This commit is contained in:
@@ -635,7 +635,6 @@ public class AsmUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void genClosureFields(List<Pair<String, Type>> allFields, ClassBuilder builder) {
|
public static void genClosureFields(List<Pair<String, Type>> allFields, ClassBuilder builder) {
|
||||||
//noinspection PointlessBitwiseExpression
|
|
||||||
int access = NO_FLAG_PACKAGE_PRIVATE | ACC_SYNTHETIC | ACC_FINAL;
|
int access = NO_FLAG_PACKAGE_PRIVATE | ACC_SYNTHETIC | ACC_FINAL;
|
||||||
for (Pair<String, Type> field : allFields) {
|
for (Pair<String, Type> field : allFields) {
|
||||||
builder.newField(JvmDeclarationOrigin.NO_ORIGIN, access, field.first, field.second.getDescriptor(), null, null);
|
builder.newField(JvmDeclarationOrigin.NO_ORIGIN, access, field.first, field.second.getDescriptor(), null, null);
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ import org.jetbrains.org.objectweb.asm.util.TraceClassVisitor;
|
|||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
|
|
||||||
@SuppressWarnings("IOResourceOpenedButNotSafelyClosed")
|
|
||||||
public class ClassBuilderFactories {
|
public class ClassBuilderFactories {
|
||||||
@NotNull
|
@NotNull
|
||||||
public static ClassBuilderFactory THROW_EXCEPTION = new ClassBuilderFactory() {
|
public static ClassBuilderFactory THROW_EXCEPTION = new ClassBuilderFactory() {
|
||||||
|
|||||||
@@ -711,13 +711,11 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
|
|||||||
|
|
||||||
if (stackElement instanceof FinallyBlockStackElement) {
|
if (stackElement instanceof FinallyBlockStackElement) {
|
||||||
FinallyBlockStackElement finallyBlockStackElement = (FinallyBlockStackElement) stackElement;
|
FinallyBlockStackElement finallyBlockStackElement = (FinallyBlockStackElement) stackElement;
|
||||||
//noinspection ConstantConditions
|
|
||||||
genFinallyBlockOrGoto(finallyBlockStackElement, null, afterBreakContinueLabel);
|
genFinallyBlockOrGoto(finallyBlockStackElement, null, afterBreakContinueLabel);
|
||||||
}
|
}
|
||||||
else if (stackElement instanceof LoopBlockStackElement) {
|
else if (stackElement instanceof LoopBlockStackElement) {
|
||||||
LoopBlockStackElement loopBlockStackElement = (LoopBlockStackElement) stackElement;
|
LoopBlockStackElement loopBlockStackElement = (LoopBlockStackElement) stackElement;
|
||||||
KtSimpleNameExpression labelElement = expression.getTargetLabel();
|
KtSimpleNameExpression labelElement = expression.getTargetLabel();
|
||||||
//noinspection ConstantConditions
|
|
||||||
if (labelElement == null ||
|
if (labelElement == null ||
|
||||||
loopBlockStackElement.targetLabel != null &&
|
loopBlockStackElement.targetLabel != null &&
|
||||||
labelElement.getReferencedName().equals(loopBlockStackElement.targetLabel.getReferencedName())) {
|
labelElement.getReferencedName().equals(loopBlockStackElement.targetLabel.getReferencedName())) {
|
||||||
|
|||||||
-1
@@ -144,7 +144,6 @@ class CodegenAnnotatingVisitor extends KtVisitorVoid {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@SuppressWarnings("ConstantConditions")
|
|
||||||
private DeclarationDescriptor correctContainerForLambda(@NotNull CallableDescriptor descriptor) {
|
private DeclarationDescriptor correctContainerForLambda(@NotNull CallableDescriptor descriptor) {
|
||||||
DeclarationDescriptor container = descriptor.getContainingDeclaration();
|
DeclarationDescriptor container = descriptor.getContainingDeclaration();
|
||||||
|
|
||||||
|
|||||||
@@ -446,7 +446,6 @@ public class KotlinTypeMapper {
|
|||||||
return Type.VOID_TYPE;
|
return Type.VOID_TYPE;
|
||||||
}
|
}
|
||||||
else if (descriptor instanceof FunctionDescriptor && forceBoxedReturnType((FunctionDescriptor) descriptor)) {
|
else if (descriptor instanceof FunctionDescriptor && forceBoxedReturnType((FunctionDescriptor) descriptor)) {
|
||||||
//noinspection ConstantConditions
|
|
||||||
return mapType(descriptor.getReturnType(), sw, TypeMappingMode.RETURN_TYPE_BOXED);
|
return mapType(descriptor.getReturnType(), sw, TypeMappingMode.RETURN_TYPE_BOXED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user