Skip to content

Commit 0468c1a

Browse files
committed
Merge branch 'bugfix-issue-346'
2 parents 562593c + e4bfd0c commit 0468c1a

4 files changed

Lines changed: 18 additions & 12 deletions

File tree

org.eclipse.paho.sample.utility/src/main/java/org/eclipse/paho/sample/utility/ConnOpts.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ public class ConnOpts extends JPanel implements ActionListener {
6565

6666
/**
6767
* Constructor for ConnOpts. The constructor builds all the GUI objects required and creates the
68-
* dialog in hidden mode ready to be made visible when required.
69-
* @param owner Required by the JDialog superclass
70-
* @param title The text displayed in the window title bar. Required by the JDialog superclass.
68+
* dialog in hidden mode ready to be made visible when required.
69+
*
7170
* @param mgr The object that manages the MQIsdp connection
7271
* @param props The properties object created from the config file on disk
7372
*/

org.eclipse.paho.sample.utility/src/main/java/org/eclipse/paho/sample/utility/LED.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,11 @@ public void setAmber() {
235235
repaint();
236236
}
237237
/**
238-
* Set the LED colour to a user specified RGB
238+
* Set the LED colour to a user specified RGB
239+
*
240+
* @param r red value
241+
* @param g green value
242+
* @param b blue value
239243
*/
240244
public void setColor(int r, int g, int b) {
241245

@@ -253,7 +257,9 @@ public void setColor(int r, int g, int b) {
253257

254258
/**
255259
* Query the flashing variable to determine if the LED is
256-
* currently in a state of flashing or not.
260+
* currently in a state of flashing or not.
261+
*
262+
* @return true if flashing
257263
*/
258264
public boolean isFlashing() {
259265
return flashing;

org.eclipse.paho.sample.utility/src/main/java/org/eclipse/paho/sample/utility/MQTTFrame.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ protected void init( Container contentPane ) {
309309
* @param message The data to be published
310310
* @param qos The Quality of Service at which the publication should be delivered.
311311
* @param retained Is this a retained publication or not?
312+
* @throws Exception on error
312313
*/
313314
public void publish( String topic, byte[] message, int qos, boolean retained ) throws Exception {
314315
setTitleText( "" );
@@ -369,12 +370,12 @@ public void disconnect() {
369370
/**
370371
* A wrapper for the MQTT connect method. If the ip address, port number or persistence flag
371372
* has changed since the last time then a new MqttClient object is required. If these values haven't changed then
372-
* any previously created object can be used.<P>
373-
* Check whether Last Will & Testament is required and call the appropriate connect method. The only persistence implementation supported at the moment is
374-
* MqttFilePersistence.
375-
* @param ipAddr The IP address or hostname to connect to.
376-
* @param port The IP port number to connect to.
373+
* any previously created object can be used.
374+
* Check whether Last Will and Testament is required and call the appropriate connect method.
375+
* The only persistence implementation supported at the moment is MqttFilePersistence.
376+
* @param connStr Connection string
377377
* @param usePersistence Is persistence required?
378+
* @throws MqttException on error
378379
*/
379380
public void connect( String connStr, boolean usePersistence ) throws MqttException {
380381
// Connect to the broker
@@ -723,6 +724,7 @@ public boolean updateComboBoxList( JComboBox list, String itemName ) {
723724

724725
/**
725726
* This method calls the MQTT startTrace method to produce trace of the protocol flows
727+
* @throws MqttException on error
726728
*/
727729
public void startTrace() throws MqttException {
728730
traceEnabled = true;

org.eclipse.paho.sample.utility/src/main/java/org/eclipse/paho/sample/utility/MQTTHist.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ public class MQTTHist extends JDialog implements ActionListener, Runnable {
4646

4747
/**
4848
* Constructor for MQTTHist.
49-
* @param owner The frame from whcih this dialog is descended
50-
* @param title The title text to display in the window bar
49+
* @param theOwner The frame owner
5150
* @param connOptions the COnnOpts panel which started this dialog
5251
*/
5352
public MQTTHist( JFrame theOwner, ConnOpts connOptions ) {

0 commit comments

Comments
 (0)