From 0e3582ba90b2e1ce727d29cdf296fe78e4ddb093 Mon Sep 17 00:00:00 2001 From: tzimanyi Date: Fri, 20 Sep 2019 12:49:58 +0200 Subject: [PATCH] KOGITO-113 Fix major issues reported by SonarCloud part #7 --- .../codegen/process/ProcessGenerator.java | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/kogito-codegen/src/main/java/org/kie/kogito/codegen/process/ProcessGenerator.java b/kogito-codegen/src/main/java/org/kie/kogito/codegen/process/ProcessGenerator.java index 234f288bfe4..5c4f424ba1a 100644 --- a/kogito-codegen/src/main/java/org/kie/kogito/codegen/process/ProcessGenerator.java +++ b/kogito-codegen/src/main/java/org/kie/kogito/codegen/process/ProcessGenerator.java @@ -19,20 +19,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Map.Entry; - -import org.drools.compiler.compiler.io.memory.MemoryFileSystem; -import org.drools.core.util.StringUtils; -import org.jbpm.compiler.canonical.ProcessMetaData; -import org.jbpm.compiler.canonical.TriggerMetaData; -import org.kie.api.definition.process.Process; -import org.kie.api.definition.process.WorkflowProcess; -import org.kie.api.runtime.process.WorkItemHandler; -import org.kie.kogito.Model; -import org.drools.modelcompiler.builder.BodyDeclarationComparator; -import org.kie.kogito.codegen.GeneratorContext; -import org.kie.kogito.codegen.di.DependencyInjectionAnnotator; -import org.kie.kogito.process.ProcessInstancesFactory; -import org.kie.kogito.process.impl.AbstractProcess; +import java.util.NoSuchElementException; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.Modifier; @@ -62,13 +49,13 @@ import com.github.javaparser.ast.type.UnknownType; import org.drools.compiler.compiler.io.memory.MemoryFileSystem; import org.drools.core.util.StringUtils; +import org.drools.modelcompiler.builder.BodyDeclarationComparator; import org.jbpm.compiler.canonical.ProcessMetaData; import org.jbpm.compiler.canonical.TriggerMetaData; import org.kie.api.definition.process.Process; import org.kie.api.definition.process.WorkflowProcess; import org.kie.api.runtime.process.WorkItemHandler; import org.kie.kogito.Model; -import org.kie.kogito.codegen.BodyDeclarationComparator; import org.kie.kogito.codegen.di.DependencyInjectionAnnotator; import org.kie.kogito.process.ProcessInstancesFactory; import org.kie.kogito.process.impl.AbstractProcess;