Skip to content

Commit f20be61

Browse files
committed
Convert the supportedModes method to default
1 parent 9bfde4c commit f20be61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/model/GatewayAgentConfiguration.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import org.wso2.carbon.apimgt.api.APIManagementException;
2222

23+
import java.util.ArrayList;
2324
import java.util.List;
2425

2526
/**
@@ -81,5 +82,7 @@ public interface GatewayAgentConfiguration {
8182
* This method returns the supported gateway modes for a given gateway type
8283
* @return List of supported gateway modes
8384
*/
84-
List<String> getSupportedModes();
85+
default List<String> getSupportedModes() {
86+
return new ArrayList<>();
87+
}
8588
}

0 commit comments

Comments
 (0)