Skip to content

Commit

Permalink
[MOSIP-32507] Java21: Updated code (#687)
Browse files Browse the repository at this point in the history
* updated pom

Signed-off-by: Aiham <[email protected]>

* Updated code

Signed-off-by: Aiham <[email protected]>

---------

Signed-off-by: Aiham <[email protected]>
  • Loading branch information
aihamh authored Jul 3, 2024
1 parent 377694f commit 08529e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.cloud.CloudFoundryVcapEnvironmentPostProcessor;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@EnableCaching
@SpringBootApplication
@SpringBootApplication(exclude = CloudFoundryVcapEnvironmentPostProcessor.class)
@ComponentScan(basePackages = { "io.mosip.*", "${mosip.lang.traslate.adapter.impl.basepackage}" }, excludeFilters = {
@ComponentScan.Filter(type = FilterType.REGEX, pattern = {
"io\\.mosip\\.kernel\\.keymigrate\\.service\\.spi\\.KeyMigratorService",
Expand All @@ -22,4 +23,4 @@ public class PreRegistrationApplication {
public static void main(String[] args) {
SpringApplication.run(PreRegistrationApplication.class, args);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,8 @@ public String getJson(String filename) {
log.error(LOGGER_SESSIONID, LOGGER_IDTYPE, LOGGER_ID, ExceptionUtils.getStackTrace(ex));
log.error(LOGGER_SESSIONID, LOGGER_IDTYPE, LOGGER_ID,
"In pre-registration service util of getPreregistrationIdentityJson- " + ex.getMessage());
// throw new SystemFileIOException(DemographicErrorCodes.PRG_PAM_APP_018.getCode(),
// DemographicErrorMessages.UBALE_TO_READ_IDENTITY_JSON.getMessage(), null);
return null;
throw new SystemFileIOException(DemographicErrorCodes.PRG_PAM_APP_018.getCode(),
DemographicErrorMessages.UBALE_TO_READ_IDENTITY_JSON.getMessage(), null);
}
}

Expand Down

0 comments on commit 08529e1

Please sign in to comment.