Skip to content

Commit

Permalink
feat: remove redundant declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Dec 13, 2023
1 parent c9a4799 commit 3759fbd
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public class NAVController implements NAVApi {

@Override
@GetMapping(path = "/{schemeCode}")
public ResponseEntity<MFSchemeDTO> getScheme(@PathVariable(name = "schemeCode") Long schemeCode) {
public ResponseEntity<MFSchemeDTO> getScheme(@PathVariable Long schemeCode) {
return ResponseEntity.ok(navService.getNav(schemeCode));
}

@Override
@GetMapping(path = "/{schemeCode}/{date}")
public ResponseEntity<MFSchemeDTO> getSchemeNavOnDate(
@PathVariable(name = "schemeCode") Long schemeCode,
@PathVariable(name = "date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {
@PathVariable Long schemeCode,
@PathVariable @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {
return ResponseEntity.ok(navService.getNavOnDate(schemeCode, date));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public ResponseEntity<String> upload(@RequestPart("file") MultipartFile multipar
@Override
public ResponseEntity<PortfolioResponse> getPortfolio(
@PathVariable("pan") String panNumber,
@RequestParam(name = "date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {
@RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date) {
return ResponseEntity.ok(portfolioService.getPortfolioByPAN(panNumber, date));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ public class SchemeController implements SchemeApi {

@Override
@GetMapping(path = "/{schemeName}")
public ResponseEntity<List<FundDetailProjection>> fetchSchemes(
@PathVariable(name = "schemeName") String schemeName) {
public ResponseEntity<List<FundDetailProjection>> fetchSchemes(@PathVariable String schemeName) {
return ResponseEntity.ok(schemeService.fetchSchemes(schemeName));
}

@Override
@GetMapping(path = "/fund/{fundName}")
public ResponseEntity<List<FundDetailProjection>> fetchSchemesByFundName(
@PathVariable(name = "fundName") String fundName) {
public ResponseEntity<List<FundDetailProjection>> fetchSchemesByFundName(@PathVariable String fundName) {
return ResponseEntity.ok(schemeService.fetchSchemesByFundName(fundName));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class MapperArchUnitTest {

@Test
void testMappers() {
void mappers() {

// we have some built other ArchUnit-checks that make sure we can rely on this filter
final long mapperCount = new ClassFileImporter()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SchemaValidationH2Test {
EntityManager entityManager;

@Test
void testSchemaValidity() {
void schemaValidity() {
assertThat(entityManager).isNotNull();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SchemaValidationPostgresIntegrationTest {
EntityManager entityManager;

@Test
void testSchemaValidity() {
void schemaValidity() {
assertThat(entityManager).isNotNull();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PortfolioControllerIT extends AbstractIntegrationTest {

@Test
@Order(1)
void testUploadFile() throws Exception {
void uploadFile() throws Exception {

File tempFile = File.createTempFile("file", ".json");
FileWriter fileWriter = new FileWriter(tempFile);
Expand Down

0 comments on commit 3759fbd

Please sign in to comment.