diff --git a/src/main/java/com/dispose/dispose/DeviceRouter.java b/src/main/java/com/dispose/dispose/DeviceRouter.java index 1aac2dc8..14949e34 100644 --- a/src/main/java/com/dispose/dispose/DeviceRouter.java +++ b/src/main/java/com/dispose/dispose/DeviceRouter.java @@ -22,6 +22,12 @@ public class DeviceRouter { return devType + "_" + ipAddr; } + /** + * Device router factory dispose entry manager. + * + * @param device the device + * @return the dispose entry manager + */ public static DisposeEntryManager deviceRouterFactory(DisposeDevice device) { String mapKey = getMapKey(device.getType(), device.getIpAddr()); @@ -56,11 +62,11 @@ public class DeviceRouter { } /** - * Device router factory dispose entry manager. + * Gets device router factory. * * @param devType the dev type * @param ipAddr the ip addr - * @return the dispose entry manager + * @return the device router factory */ public static DisposeEntryManager getDeviceRouterFactory(int devType, String ipAddr) { diff --git a/src/main/java/com/dispose/pojo/dto/ProtocolRespDTO.java b/src/main/java/com/dispose/pojo/dto/ProtocolRespDTO.java index 6b3be27a..d8541113 100644 --- a/src/main/java/com/dispose/pojo/dto/ProtocolRespDTO.java +++ b/src/main/java/com/dispose/pojo/dto/ProtocolRespDTO.java @@ -82,6 +82,16 @@ public class ProtocolRespDTO extends BaseProtocolDTO { return result(err, getObjectJson(obj), ConstValue.Protocol.CRYPTO_NONE); } + /** + * Result protocol resp dto. + * + * @param the type parameter + * @param err the err + * @param obj the obj + * @param objType the obj type + * @return the protocol resp dto + * @throws JsonProcessingException the json processing exception + */ public static ProtocolRespDTO result(ErrorCode err, Object obj, Class objType) throws JsonProcessingException { return result(err, getObjectJson(obj, objType), ConstValue.Protocol.CRYPTO_NONE); }