Skip to content

Commit

Permalink
Fix some javadocs. (openhab#2349)
Browse files Browse the repository at this point in the history
Includes:
- some multi line comments changed to javadoc
- some javadocs moved to the correct place

See: #openhab/static-code-analysis/52
Signed-off-by: Svilen Valkanov <[email protected]>
  • Loading branch information
Svilen authored and Ogórek Anatol committed Jul 5, 2017
1 parent aab3ec9 commit 0375b7e
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/* Bridge to access a CoolMasterNet unit's ASCII protocol via TCP socket.
/**
* Bridge to access a CoolMasterNet unit's ASCII protocol via TCP socket.
*
* A single CoolMasterNet can be connected to one or more HVAC units, each with a unique UID.
* These are individual Things inside the bridge.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
/**
* The {@link AbstractCommand} class implements the basic functionality needed for all GlobalCache commands.
*
* @author Mark Hilbush - Initial contribution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
/**
* The {@link CommandGetdevices} class implements the GlobalCache getdevices command.
*
* @author Mark Hilbush - Initial contribution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
/**
* The {@link CommandGetserial} class implements the GlobalCache get_SERIAL command, which retrieves the serial
* port parameters (baud, flow control, and parity) from the device.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
/**
* The {@link CommandGetstate} class implements the GlobalCache getstate command, which retrieves the
* current state of the contact closure on the device.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
/**
* The {@link CommandGetversion} class implements the GlobalCache getversion command, which retrieves software
* version of the device.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package org.openhab.binding.globalcache.internal.command;

/*
/**
* The {@link CommandInterface} interface class defines the methods that all command classes must implement.
*
* @author Mark Hilbush - Initial contribution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
/**
* The {@link CommandSendir} class implements the GlobalCache sendir command, which sends
* an infrared command to the device.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
/**
* The {@link CommandSendserial} class sends a serial command string to the device.
*
* @author Mark Hilbush - Initial contribution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
/**
* The {@link CommandSetserial} class implements the GlobalCache set_SERIAL command, which sets the serial
* port parameters (baud, flow control, and parity) on the device.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
* The {@link CommandSetstate} class implements the GlobalCache setstate command for devices that support contact closure.
/**
* The {@link CommandSetstate} class implements the GlobalCache setstate command for devices that support contact
* closure.
*
* @author Mark Hilbush - Initial contribution
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
*/
package org.openhab.binding.vitotronic.handler;

/**
* The {@link VitotronicBridgeHandler} class handles the connection to the
* optolink adapter.
*
* @author Stefan Andres - Initial contribution
*/

import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
Expand Down Expand Up @@ -44,6 +37,12 @@
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;

/**
* The {@link VitotronicBridgeHandler} class handles the connection to the
* optolink adapter.
*
* @author Stefan Andres - Initial contribution
*/
public class VitotronicBridgeHandler extends BaseBridgeHandler {

private Logger logger = LoggerFactory.getLogger(VitotronicBridgeHandler.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
*/
package org.openhab.binding.vitotronic.internal.discovery;

/**
* The {@link VitotronicBridgeDiscovery} class handles the discovery of things.
* with broadcasting and put it to inbox, if found.
*
*
* @author Stefan Andres - Initial contribution
*/

import org.eclipse.smarthome.config.discovery.AbstractDiscoveryService;
import org.eclipse.smarthome.config.discovery.DiscoveryResult;
import org.eclipse.smarthome.config.discovery.DiscoveryResultBuilder;
Expand All @@ -25,6 +17,13 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* The {@link VitotronicBridgeDiscovery} class handles the discovery of things.
* with broadcasting and put it to inbox, if found.
*
*
* @author Stefan Andres - Initial contribution
*/
public class VitotronicDiscoveryService extends AbstractDiscoveryService {

private Logger logger = LoggerFactory.getLogger(VitotronicDiscoveryService.class);
Expand Down

0 comments on commit 0375b7e

Please sign in to comment.