Skip to content

Commit 3ceb4c3

Browse files
committed
Remove commented code
1 parent 6018eb3 commit 3ceb4c3

File tree

2 files changed

+2
-42
lines changed

2 files changed

+2
-42
lines changed

mq/main/mq-admin/admin-cli/src/main/java/com/sun/messaging/jmq/admin/apps/broker/BrokerCmdHelpPrinter.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2000, 2017 Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2020, 2021 Contributors to Eclipse Foundation. All rights reserved.
3+
* Copyright (c) 2020 Contributors to Eclipse Foundation. All rights reserved.
44
*
55
* This program and the accompanying materials are made available under the
66
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -154,10 +154,6 @@ private void printBrokerAttrs() {
154154
row[1] = ar.getString(ar.I_LOG_ROLLOVER_INTERVAL);
155155
bcp.add(row);
156156

157-
/*
158-
* row[0] = indent + PROP_NAME_BKR_METRIC_INTERVAL; row[1] = ar.getString(ar.I_METRIC_INTERVAL); bcp.add(row);
159-
*/
160-
161157
row[0] = indent + PROP_NAME_BKR_MAX_MSG;
162158
row[1] = ar.getString(ar.I_MAX_MSGS_IN_BROKER);
163159
bcp.add(row);
@@ -174,11 +170,6 @@ private void printBrokerAttrs() {
174170
row[1] = ar.getString(ar.I_CLS_URL);
175171
bcp.add(row);
176172

177-
/*
178-
* row[0] = indent + PROP_NAME_BKR_QUEUE_DELIVERY_POLICY; row[1] = ar.getString(ar.I_AUTOCREATED_QUEUE_DELIVERY_POLICY);
179-
* bcp.add(row);
180-
*/
181-
182173
row[0] = indent + PROP_NAME_BKR_AUTOCREATE_QUEUE_MAX_ACTIVE_CONS;
183174
row[1] = ar.getString(ar.I_AUTOCREATED_QUEUE_MAX_ACTIVE_CONS);
184175
bcp.add(row);

mq/main/mq-admin/admin-cli/src/main/java/com/sun/messaging/jmq/admin/apps/broker/CmdRunner.java

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2000, 2020 Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2020 Payara Services Ltd.
4-
* Copyright (c) 2020, 2025 Contributors to Eclipse Foundation. All rights reserved.
4+
* Copyright (c) 2020 Contributors to Eclipse Foundation. All rights reserved.
55
*
66
* This program and the accompanying materials are made available under the
77
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -7535,37 +7535,6 @@ private boolean reconnectToBroker(BrokerAdmin broker) {
75357535
return connected;
75367536
}
75377537

7538-
/*
7539-
* private static Properties convertQueueDeliveryPolicy (Properties targetAttrs) {
7540-
*
7541-
* String deliveryValue = targetAttrs.getProperty(PROP_NAME_BKR_QUEUE_DELIVERY_POLICY);
7542-
*
7543-
* if (PROP_VALUE_QUEUE_FLAVOUR_SINGLE.equals(deliveryValue)) {
7544-
* targetAttrs.setProperty(PROP_NAME_BKR_QUEUE_DELIVERY_POLICY, PROP_NAME_QUEUE_FLAVOUR_SINGLE);
7545-
*
7546-
* } else if (PROP_VALUE_QUEUE_FLAVOUR_FAILOVER.equals(deliveryValue)) {
7547-
* targetAttrs.setProperty(PROP_NAME_BKR_QUEUE_DELIVERY_POLICY, PROP_NAME_QUEUE_FLAVOUR_FAILOVER);
7548-
*
7549-
* } else if (PROP_VALUE_QUEUE_FLAVOUR_ROUNDROBIN.equals(deliveryValue)) {
7550-
* targetAttrs.setProperty(PROP_NAME_BKR_QUEUE_DELIVERY_POLICY, PROP_NAME_QUEUE_FLAVOUR_ROUNDROBIN);
7551-
*
7552-
* } else { // Should not get here, as the value has already been validated }
7553-
*
7554-
* return targetAttrs; }
7555-
*/
7556-
7557-
/*
7558-
* private String getDisplayableQueueDeliveryPolicy(String deliveryValue) {
7559-
*
7560-
* if (PROP_NAME_QUEUE_FLAVOUR_SINGLE.equals(deliveryValue)) { return (ar.getString(ar.I_SINGLE));
7561-
*
7562-
* } else if (PROP_NAME_QUEUE_FLAVOUR_FAILOVER.equals(deliveryValue)) { return (ar.getString(ar.I_FAILOVER));
7563-
*
7564-
* } else if (PROP_NAME_QUEUE_FLAVOUR_ROUNDROBIN.equals(deliveryValue)) { return (ar.getString(ar.I_RROBIN));
7565-
*
7566-
* } else { // Should not get here, as the value has already been validated return (ar.getString(ar.I_UNKNOWN)); } }
7567-
*/
7568-
75697538
private int getPauseTypeVal(String destStateStr) {
75707539
int ret = DestState.UNKNOWN;
75717540

0 commit comments

Comments
 (0)