Skip to content

Commit

Permalink
use singleton scope for service class without state, remove empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
wetret committed Dec 18, 2024
1 parent 4b3fc2f commit b726643
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public CheckSearchBundle checkSearchBundle()
}

@Bean
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
public SearchQueryCheckService searchQueryCheckService()
{
return new SearchQueryCheckService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class SearchQueryCheckService
.of(DATE_SEARCH_PARAMS.stream(), TOKEN_SEARCH_PARAMS.stream(), OTHER_SEARCH_PARAMS.stream()).flatMap(s -> s)
.toList();


public void checkBundle(Bundle bundle)
{
List<Bundle.BundleEntryComponent> searches = bundle.getEntry();
Expand Down

0 comments on commit b726643

Please sign in to comment.