@@ -120,27 +120,24 @@ protected void updateAttributesInfo(Collection<DynamicMetric<?, ?>> dynamicMetri
120120 }
121121 }
122122 }
123- }
124123
125- // SensorName
126- attributeInfoList .add (new MBeanAttributeInfo (SENSOR_NAME_TAG , String .class .getName (),
127- "The name of the metric sensor" , true , false , false ));
124+ // SensorName
125+ attributeInfoList .add (new MBeanAttributeInfo (SENSOR_NAME_TAG , String .class .getName (),
126+ "The name of the metric sensor" , true , false , false ));
128127
129- MBeanConstructorInfo constructorInfo = new MBeanConstructorInfo (
130- String .format ("Default %s Constructor" , getClass ().getSimpleName ()),
131- getClass ().getConstructors ()[0 ]);
128+ MBeanConstructorInfo constructorInfo = new MBeanConstructorInfo (
129+ String .format ("Default %s Constructor" , getClass ().getSimpleName ()), getClass ().getConstructors ()[0 ]);
132130
133- MBeanAttributeInfo [] attributesInfo = new MBeanAttributeInfo [attributeInfoList .size ()];
134- attributesInfo = attributeInfoList .toArray (attributesInfo );
131+ MBeanAttributeInfo [] attributesInfo = new MBeanAttributeInfo [attributeInfoList .size ()];
132+ attributesInfo = attributeInfoList .toArray (attributesInfo );
135133
136- if (description == null ) {
137- description = DEFAULT_DESCRIPTION ;
138- }
134+ if (description == null ) {
135+ description = DEFAULT_DESCRIPTION ;
136+ }
139137
140- _mBeanInfo = new MBeanInfo (getClass ().getName (), description , attributesInfo ,
141- new MBeanConstructorInfo [] {
142- constructorInfo
143- }, new MBeanOperationInfo [0 ], new MBeanNotificationInfo [0 ]);
138+ _mBeanInfo = new MBeanInfo (getClass ().getName (), description , attributesInfo , new MBeanConstructorInfo []{constructorInfo }, new MBeanOperationInfo [0 ],
139+ new MBeanNotificationInfo [0 ]);
140+ }
144141 }
145142
146143 /**
0 commit comments