Skip to content

Commit

Permalink
Fix error in merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sgayangi committed Dec 6, 2023
1 parent 33f7455 commit ba319ff
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
* Copyright (c) 2023, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -44,7 +44,7 @@
import org.wso2.apk.enforcer.util.EndpointUtils;
import org.wso2.apk.enforcer.util.FilterUtils;
import org.wso2.apk.enforcer.util.MockImplUtils;

import org.wso2.apk.enforcer.deny.DenyFilter;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.util.ArrayList;
Expand Down Expand Up @@ -243,7 +243,8 @@ private void initFilters() {
private void loadCustomFilters(APIConfig apiConfig) {

FilterDTO[] customFilters = ConfigHolder.getInstance().getConfig().getCustomFilters();
// Needs to sort the filter in ascending order to position the filter in the given position.
// Needs to sort the filter in ascending order to position the filter in the
// given position.
Arrays.sort(customFilters, Comparator.comparing(FilterDTO::getPosition));
Map<String, Filter> filterImplMap = new HashMap<>(customFilters.length);
ServiceLoader<Filter> loader = ServiceLoader.load(Filter.class);
Expand Down

0 comments on commit ba319ff

Please sign in to comment.