@PropertySources({
@PropertySource("classpath:application.properties"),
@PropertySource("classpath:jdbc.properties") })
-//CHECKSTYLE:OFF: checkstyle:hideutilityclassconstructorcheck
-//CHECKSTYLE:OFF: HideUtilityClassConstructorCheck
-@SuppressWarnings("checkstyle:HideUtilityClassConstructorCheck")
+//CHECKSTYLE.OFF: HideUtilityClassConstructorCheck
public class AppConfigInit {
static {
* @par LLC "Samsung Electronics Co", Ltd (Seoul, Republic of Korea)
* @par Copyright: (c) Samsung Electronics Co, Ltd 2017. All rights reserved.
*/
-public class Cloud {
+public final class Cloud {
private static final String IOTIVITY_HOST = AppConfigInit.getEnv().getRequiredProperty("iotivity.host");
private static final String MODEL_NAME = AppConfigInit.getEnv().getRequiredProperty("iotivity.model.name");
LOG.debug(format("User saved [%s]", user.toString()));
return new ResponseEntity<>(OK);
} catch (IllegalArgumentException e) {
- throw new IotCloudAssociatedUserNotExists();
+ throw new IotCloudAssociatedUserNotExists(e);
}
}
public IotCloudAssociatedUserNotExists() {
super();
}
+
+ public IotCloudAssociatedUserNotExists(Exception e) {
+ super(e);
+ }
+
}