Skip to content

Commit

Permalink
Deal with sonarcloud reports
Browse files Browse the repository at this point in the history
  • Loading branch information
pango853 committed Dec 1, 2018
1 parent 6225c63 commit d3f1aeb
Show file tree
Hide file tree
Showing 95 changed files with 352 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ public final class FunctionConstant {
public static final String HUB = "Hub";
/** 遠隔管理 */
public static final String INQUIRY = "Inquiry";

private FunctionConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ public static enum ObjectPrivilegeMode {READ, MODIFY, EXEC, NONE}
// システム権限設定種別
public static final String SYSTEMPRIVILEGE_EDITTYPE_NONE = "0";
public static final String SYSTEMPRIVILEGE_EDITTYPE_DIALOG = "1";

private PrivilegeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ else if (roleId.equals(HINEMOS_MODULE)) {
return false;
}

private RoleIdConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ public final class RoleSettingTreeConstant {
/** マネージャのID */
public static final String MANAGER = "MANAGER";

private RoleSettingTreeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ public class RoleTypeConstant {
/** Hinemos内部ロール */
public static final String INTERNAL_ROLE = "2";

private RoleTypeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ public class UserIdConstant {

/** HINEMOS_AGENT */
public static final String AGENT = "HINEMOS_AGENT";

private UserIdConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ public class UserTypeConstant {
/** Hinemos内部ユーザ */
public static final String INTERNAL_USER = "2";

private UserTypeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ public class TopicFlagConstant {
public static final long WINEVENT_CHANGED = 1 << 5;
public static final long FILECHECK_CHANGED = 1 << 6;
public static final long BINARY_CHANGED = 1 << 7;

private TopicFlagConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,7 @@ public class DataRangeConstant {
/** SNMP TRAPのgeneric trap の上限 */
public static final int GENERIC_ID_HIGH = 6;

private DataRangeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ public class EndStatusConstant {

/** 異常 */
public static final int INITIAL_VALUE_ABNORMAL = -1;

private EndStatusConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -450,4 +450,8 @@ public static String nameToMessageCode(String typeId) {
}
return "";
}

private HinemosModuleConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ public class JobApprovalResultConstant {

/** 否認 */
public static final int TYPE_DENIAL = 9;

private JobApprovalResultConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ public class JobApprovalStatusConstant {
/** 承認済(状態の種別) */
public static final int TYPE_FINISHED = 1;

private JobApprovalStatusConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
*/
public class PatternConstant {
public static final String HINEMOS_ID_PATTERN = "^[A-Za-z0-9-_.@]+$";

private PatternConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,8 @@ public class PluginConstant {
public static final int TYPE_INFRA = 24;
/** カスタムトラップ監視 */
public static final int TYPE_CUSTOMTRAP_MONITOR = 25;

private PluginConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ public static String typeToMessageCode(int type) {
return "";
}

private PriorityConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ public class PropertyConstant {
public static final String MAP_VALUE = "value";

public static final String MAP_PROPERTY = "property";

private PropertyConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ public class ScheduleConstant {

/** p分からq分毎に繰り返し実行の場合 */
public static final int TYPE_REPEAT = 3;

private ScheduleConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@ public static List<String> getPrivProtocol() {
return list;
}


private SnmpProtocolConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ public class SnmpSecurityLevelConstant {
/** 認証あり・暗号化あり */
public static final String AUTH_PRIV = "auth_priv";

private SnmpSecurityLevelConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ public static Integer stringToType(String str) {
}
return -1;
}

private SnmpVersionConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,8 @@ public static String typeToMessageCode(int type) {
}
return "";
}

private StatusConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ public static enum SearchError {

// インスタンス化防止コンストラクタ.
private BinaryConstant() {
throw new IllegalStateException("ConstClass");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public final class BinaryTagConstant {

// インスタンス化防止コンストラクタ.
private BinaryTagConstant() {
throw new IllegalStateException("ConstClass");
}

/** ファイル共通タグ **/
Expand Down Expand Up @@ -1384,5 +1385,4 @@ public final static class Protocol {
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,7 @@ public static BinaryConstant.DataArchType getDataArchType(String collectType, St

}

private BinaryBeanUtil() {
throw new IllegalStateException("UtilClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ public class CollectConstant {

// ジョブセッション時間 区切り文字
public static final String COLLECT_TYPE_JOB_DELIMITER = ":";

private CollectConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ public static String typeToMessageCode(int type) {
}
return "";
}

private SummaryTypeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ public class InfraNodeInputConstant {

/** デフォルト値 */
public static final int TYPE_DEFAULT = TYPE_NODE_PARAM;

private InfraNodeInputConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ public class InfraParameterConstant {
WINRM_USER,
WINRM_PASSWORD
};

private InfraParameterConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ public class ModuleTypeConstant {
public static final int TYPE_FILETRANSFER = 1;
/** 参照環境構築モジュール */
public static final int TYPE_REFERMANAGEMENT = 2;

private ModuleTypeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,8 @@ public static int stringToType(String string) {
}
return -1;
}

private OkNgConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ public class RunCheckTypeConstant {
public static final int TYPE_CHECK = 2;
/** プレチェック */
public static final int TYPE_PRECHECK = 3;

private RunCheckTypeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ public class SendMethodConstant {
public static List<Integer> getTypeList() {
return Arrays.asList(TYPE_SCP, TYPE_WINRM);
}

private SendMethodConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ public class CommandStopTypeConstant {
public static final int EXECUTE_COMMAND = 0;
/** プロセスを終了 */
public static final int DESTROY_PROCESS= 1;

private CommandStopTypeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ public class CommandTypeConstant {
public static final int NORMAL = 0;
/** 停止コマンド */
public static final int STOP = 1;

private CommandTypeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ public class ConditionTypeConstant {

/** OR条件(数値) */
public static final int TYPE_OR = 1;

private ConditionTypeConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ public class DecisionObjectConstant {

/** !=(文字列) */
public static final int NOT_EQUAL_STRING = 7;

private DecisionObjectConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,8 @@ public static int addOperation(int notify, int operation){
notify = getNotify(notify);
return notify + operation;
}

private DelayNotifyConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ public class EndStatusCheckConstant {
public static final int NO_WAIT_JOB = 0;
/** 全ジョブの終了状態をチェックする */
public static final int ALL_JOB = 1;

private EndStatusCheckConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ public class FileCheckConstant {
public static final int TYPE_MODIFY_TIMESTAMP = 0;
/** 変更 - ファイルサイズの場合 */
public static final int TYPE_MODIFY_FILESIZE = 1;

private FileCheckConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ public class HistoryFilterPropertyConstant {

/** オーナーロールID */
public static final String OWNER_ROLE_ID = "ownerRoleId";

private HistoryFilterPropertyConstant() {
throw new IllegalStateException("ConstClass");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ public static String typeToMessageCode(int type) {
}
return STRING_COMPOSITE;
}

private JobConstant() {
throw new IllegalStateException("ConstClass");
}
}
Loading

0 comments on commit d3f1aeb

Please sign in to comment.