FINERACT-2326: Refractor redundant and some deprecated code as per new Java 21 style (Phase 2)
This commit is contained in:
+1
-2
@@ -20,8 +20,7 @@ package com.acme.fineract.event.starter;
|
||||
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.ComponentScans;
|
||||
|
||||
@AutoConfiguration
|
||||
@ComponentScans({ @ComponentScan("com.acme.fineract.event.externalevent") })
|
||||
@ComponentScan("com.acme.fineract.event.externalevent")
|
||||
public class AcmeEventAutoConfiguration {}
|
||||
|
||||
+1
-3
@@ -26,11 +26,9 @@ import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.ComponentScans;
|
||||
|
||||
@AutoConfiguration
|
||||
@ComponentScans({ @ComponentScan("com.acme.fineract.loan.cob"), @ComponentScan("com.acme.fineract.loan.processor"),
|
||||
@ComponentScan("com.acme.fineract.loan.job") })
|
||||
@ComponentScan(basePackages = { "com.acme.fineract.loan.cob", "com.acme.fineract.loan.processor", "com.acme.fineract.loan.job" })
|
||||
@ConditionalOnProperty("acme.loan.enabled")
|
||||
public class AcmeLoanAutoConfiguration {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user