Skip to content

Commit

Permalink
refactor: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zavakid committed Mar 22, 2024
1 parent d6409c7 commit bbea0e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class AutoPipelineClassDescriptor(

val entityMethods = elements.getAllMembers(entityElement)
.filterNotNull()
.filterIsInstance(ExecutableElement::class.java)
.filterIsInstance<ExecutableElement>()
.filter {
it.kind == ElementKind.METHOD && it.modifiers.contains(PUBLIC) && it.modifiers.contains(ABSTRACT)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import javax.lang.model.type.TypeVariable
abstract class AbstractGenerator(private val desc: AutoPipelineClassDescriptor) {

companion object {
private const val indent: String = " "
private const val INDENT: String = " "
}

protected fun javaFileBuilder(packageName: String, typeSpec: TypeSpec): JavaFile.Builder =
JavaFile.builder(packageName, typeSpec)
.skipJavaLangImports(true)
.indent(indent)
.indent(INDENT)


protected fun genPipelineOverrideMethods(statement: (AutoPipelineOperatorsDescriptor) -> CodeBlock): List<MethodSpec> =
Expand Down

0 comments on commit bbea0e8

Please sign in to comment.