File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
src/com/magento/idea/magento2plugin/magento/packages Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 99import java .util .List ;
1010
1111public enum MessageQueueConnections {
12+
1213 DB ("db" ),
13- AMPQ ("ampq " );
14+ AMPQ ("amqp " );
1415
1516 private final String type ;
1617
@@ -32,16 +33,6 @@ public String getType() {
3233 return type ;
3334 }
3435
35- /**
36- * Get connection type by name.
37- *
38- * @param typeName type name
39- * @return Request Interface
40- */
41- public static String getConnectionTypeByName (final String typeName ) {
42- return MessageQueueConnections .valueOf (typeName ).getType ();
43- }
44-
4536 /**
4637 * Get list of connection types.
4738 *
@@ -51,7 +42,7 @@ public static List<String> getList() {
5142 final List <String > typeList = new ArrayList <>();
5243
5344 for (final MessageQueueConnections type : MessageQueueConnections .values ()) {
54- typeList .add (getConnectionTypeByName ( type .name () ));
45+ typeList .add (type .getType ( ));
5546 }
5647
5748 return typeList ;
You can’t perform that action at this time.
0 commit comments