{"action":"created","comment":{"url":"https://api.github.com/repos/datvv/At2/pulls/comments/125807879","pull_request_review_id":48231085,"id":125807879,"diff_hunk":"@@ -0,0 +1,2153 @@\n+package jp.co.atom.atwms.common;\n+\n+import java.io.UnsupportedEncodingException;\n+import java.math.BigDecimal;\n+import java.text.SimpleDateFormat;\n+import java.util.ArrayList;\n+import java.util.Calendar;\n+import java.util.Date;\n+import java.util.StringTokenizer;\n+\n+import jp.co.atom.atwms.obj.item.PieceItem;\n+\n+import org.apache.commons.lang.StringUtils;\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+\n+/**\n+ * 共通クラス\n+ *\n+ * @author tai\n+ *\n+ */\n+public class AtWMSUtils {\n+\n+\t/**\n+\t * 未入力チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return 空以外:ture 空:false\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkStringNull(String chkString) throws Exception {\n+\t\t// 未入力チェック\n+\t\tif (chkString == null) {\n+\t\t\treturn false;\n+\t\t}\n+\t\tif (chkString.equals(\"\")) {\n+\t\t\treturn false;\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 半角数字チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:半角数字のみ false:半角数字以外あり\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkHalfNum(String chkString) throws Exception {\n+\t\t// 文字列の長さ分繰り返し\n+\t\tfor (int i = 0; i < chkString.length(); i++) {\n+\t\t\tchar c = chkString.charAt(i);\n+\t\t\tif (c < '0' || c > '9') {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 半角英字チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:半角英字のみ false:半角英字以外あり\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkHalfAlpha(String chkString) throws Exception {\n+\t\tfor (int i = 0; i < chkString.length(); i++) {\n+\t\t\tchar c = chkString.charAt(i);\n+\t\t\tif ((c < 'a' || c > 'z') && (c < 'A' || c > 'Z')) {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 半角英数字チェック\n+\t *\n+\t * @param str チェック文字列\n+\t * @return true:半角英数字のみ false:半角英数字以外あり\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkHalfNumAlpha(String chkString) throws Exception {\n+\t\tfor (int i = 0; i < chkString.length(); i++) {\n+\t\t\tchar c = chkString.charAt(i);\n+\t\t\tif ((c < '0' || c > '9') && (c < 'a' || c > 'z') && (c < 'A' || c > 'Z')) {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * ロット№用入力文字チェック\n+\t *\n+\t * @param str チェック文字列\n+\t * @return true:半角英数字か\"-\"か\"_\"か\".\"か\"*\"か\"/\"のみ false:true条件以外の文字\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkLotAlpha(String chkString) throws Exception {\n+\t\tfor (int i = 0; i < chkString.length(); i++) {\n+\t\t\tchar c = chkString.charAt(i);\n+\t\t\tif ((c < '0' || c > '9') && (c < 'a' || c > 'z') && (c < 'A' || c > 'Z') && (c != '-') && (c != '_') && (c != '.') && (c != '*') && (c != '/')) {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 半角数字とハイフンのみチェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:半角数字とハイフンのみ false:半角数字とハイフン以外あり\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkHalfNumHyphen(String chkString) throws Exception {\n+\t\t// 文字列の長さ分繰り返し\n+\t\tfor (int i = 0; i < chkString.length(); i++) {\n+\t\t\tchar c = chkString.charAt(i);\n+\t\t\tif ((c < '0' || c > '9') && (c != '-')) {\n+\t\t\t\t// 0～9,- 以外があった場合エラー\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 半角数字とスラッシュのみチェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:半角数字とスラッシュのみ false:半角数字とスラッシュ以外あり\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkHalfNumSlash(String chkString) throws Exception {\n+\t\t// 文字列の長さ分繰り返し\n+\t\tfor (int i = 0; i < chkString.length(); i++) {\n+\t\t\tchar c = chkString.charAt(i);\n+\t\t\tif ((c < '0' || c > '9') && (c != '/')) {\n+\t\t\t\t// 0～9,/ 以外があった場合エラー\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 半角文字チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:半角のみ false:半角以外を含む\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkHalfString(String chkString) throws Exception {\n+\n+\t\t//半角文字チェック(バイト数 = 桁数の場合、半角のみ判断とする)\n+\t\tif (chkString.getBytes(AppliConst.CHAR_WIN31J).length != chkString.length()) {\n+\t\t\treturn false;\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 特殊文字チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @param spCheckFlg 「'」「,」「\\」「\"」「タブ」チェックフラグ\n+\t * @return true:半角のみ false:半角以外を含む\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkSpString(String chkString) throws Exception {\n+\n+\t\t// 特殊文字チェック（「'」「,」「\\」「\"」「タブ」のチェック）\n+\t\t// 文字列の長さ分繰り返し\n+\t\tfor (int i = 0; i < chkString.length(); i++) {\n+\t\t\tchar c = chkString.charAt(i);\n+\t\t\tif ((c == '\\'')||(c == ',')||(c == '\\\\')||(c == '\\\"')||(c == '\\t')) {\n+\t\t\t\t// 「'」「,」「\\」「\"」「タブ」があった場合エラー\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 特殊文字チェックその２\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @param spCheckFlg 「'」「,」「\\」「\"」「タブ」「<」「>」チェックフラグ\n+\t * @return true:特殊文字なし false:特殊文字を含む\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkSpString2(String chkString) throws Exception {\n+\n+\t\t// 特殊文字チェック（「'」「,」「\\」「\"」「タブ」「<」「>」のチェック）\n+\t\t// 文字列の長さ分繰り返し\n+\t\tfor (int i = 0; i < chkString.length(); i++) {\n+\t\t\tchar c = chkString.charAt(i);\n+\t\t\tif ((c == '\\'')||(c == ',')||(c == '\\\\')||(c == '\\\"')||(c == '\\t')||(c == '<')||(c == '>')) {\n+\t\t\t\t// 「'」「,」「\\」「\"」「タブ」「<」「>」があった場合エラー\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * カナチェック\n+\t *\n+\t * @param chkStringチェック文字列\n+\t * @return true:カナのみ false:カナ以外あり\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkKana(String chkString) throws Exception {\n+\n+\t\tif (chkString != null) {\n+\t\t\tchar[] chars = chkString.toCharArray();\n+\t\t\tfor (int i = 0; i < chars.length; i++) {\n+\t\t\t\tchar target = chars[i];\n+\t\t\t\tif (0x30A1 <= target && target <= 0x30FE) {\n+\n+\t\t\t\t} else {\n+\t\t\t\t\treturn false;\n+\t\t\t\t}\n+\t\t\t}\n+\n+\t\t}\n+\t\treturn true;\n+\n+\t\t// for (int i = 0; i < chkString.length(); i++) {\n+\t\t// char c = chkString.charAt(i);\n+\t\t// if ((c < 'ァ' || c > 'ヴ') && (c < 'ｦ' || c > 'ﾟ')) {\n+\t\t// //半角カナ、全角カナ以外があった場合エラー\n+\t\t// return false;\n+\t\t// }\n+\t\t// }\n+\t\t// return true;\n+\t}\n+\n+\t/**\n+\t * バイト数チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @param chkLength バイト数\n+\t * @return true:指定バイト数以内 false:指定バイト数オーバー\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkByte(String chkString, int chkLength) throws Exception {\n+\t\t// log.debug(chkString + \" = \" + chkString.getBytes(AppliConst.CHAR_WIN31J).length) ;\n+\t\t// log.debug(chkString + \" = \" + chkString.getBytes(AppliConst.CHAR_WIN31J).length) ;\n+\t\tif (chkString.getBytes(AppliConst.CHAR_WIN31J).length > chkLength) {\n+\t\t\treturn false;\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * バイト数範囲チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @param chkLength バイト数\n+\t * @return true:指定バイト数以内 false:指定バイト数オーバー\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkByteBetween(String chkString, int chkLengthMin, int chkLengthMax) throws Exception {\n+\t\t// log.debug(chkString + \" = \" + chkString.getBytes(AppliConst.CHAR_WIN31J).length) ;\n+\t\t// log.debug(chkString + \" = \" + chkString.getBytes(AppliConst.CHAR_WIN31J).length) ;\n+\t\tif (chkString.getBytes(AppliConst.CHAR_WIN31J).length < chkLengthMin\n+\t\t\t\t|| chkString.getBytes(AppliConst.CHAR_WIN31J).length > chkLengthMax) {\n+\t\t\treturn false;\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 整数チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:整数 false:整数以外\n+\t * @throws Exception\n+\t *             ※マイナス有\n+\t */\n+\tpublic static boolean chkNumInt(String chkString) throws Exception {\n+\t\ttry {\n+\t\t\tInteger.parseInt(chkString);\n+\t\t\treturn true;\n+\t\t} catch (NumberFormatException e) {\n+\t\t\treturn false;\n+\t\t}\n+\t}\n+\n+\t/**\n+\t * 整数チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:整数 false:整数以外\n+\t * @throws Exception\n+\t *             ※マイナス有\n+\t */\n+\tpublic static boolean chkNumLong(String chkString) throws Exception {\n+\t\ttry {\n+\t\t\tLong.parseLong(chkString);\n+\t\t\treturn true;\n+\t\t} catch (NumberFormatException e) {\n+\t\t\treturn false;\n+\t\t}\n+\t}\n+\n+\n+\t/**\n+\t * 数値チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:数値 false:数値以外\n+\t * @throws Exception\n+\t *             ※小数点、マイナス有\n+\t */\n+\tpublic static boolean chkNumDbl(String chkString) throws Exception {\n+\t\ttry {\n+\t\t\tDouble.parseDouble(chkString);\n+\n+\t\t\t//数値パターンチェック\n+\t\t\t//※1fや1.2e+3をNGにするため\n+\t\t\tif (chkString.matches(\"^[-+]?[0-9]*[.]?[0-9]*$\") == false) {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\n+\t\t\treturn true;\n+\t\t} catch (NumberFormatException e) {\n+\t\t\treturn false;\n+\t\t}\n+\t}\n+\n+\t/**\n+\t * 指数表現かどうかチェック\n+\t * @param chkString チェック文字列\n+\t * @return true:指数表記ではない false:指数表記\n+\t * @throws Exception\n+\t */\n+\tpublic static boolean chkNumShisu(String chkString) throws Exception {\n+\t\tfor(int i = 0; i < chkString.length(); i++) {\n+\t\t\tif('E' == chkString.charAt(i)){\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\t\treturn true;\n+\t}\n+\n+\t/**\n+\t * 0チェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:0以外 false:0\n+\t * @throws Exception\n+\t *             ※整数チェックor数値チェックの後に使用する\n+\t */\n+\tpublic static boolean chkNumZero(String chkString) throws Exception {\n+\n+\n+\t\t//小数点検索\n+\t\tint posPnt = StringUtils.indexOf(chkString, \".\");\n+\n+\t\tif(posPnt == -1){\n+\t\t\t// 0の場合エラー\n+\t\t\tif (Long.parseLong(chkString) != 0) {\n+\t\t\t\treturn true;\n+\t\t\t} else {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}else{\n+\t\t\t// 0の場合エラー\n+\t\t\tif (Double.parseDouble(chkString) != 0.0) {\n+\t\t\t\treturn true;\n+\t\t\t} else {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\n+\t}\n+\n+\t/**\n+\t * マイナスチェック\n+\t *\n+\t * @param chkString チェック文字列\n+\t * @return true:0より大きい false:0より小さい\n+\t * @throws Exception\n+\t *             ※整数チェックor数値チェックの後に使用する\n+\t */\n+\tpublic static boolean chkNumMinus(String chkString) throws Exception {\n+\n+\t\t//小数点検索\n+\t\tint posPnt = StringUtils.indexOf(chkString, \".\");\n+\n+\t\tif(posPnt == -1){\n+\t\t\t// マイナスの場合エラー\n+\t\t\tif (Long.parseLong(chkString) >= 0) {\n+\t\t\t\treturn true;\n+\t\t\t} else {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}else{\n+\t\t\t// マイナスの場合エラー\n+\t\t\tif (Double.parseDouble(chkString) >= 0) {\n+\t\t\t\treturn true;\n+\t\t\t} else {\n+\t\t\t\treturn false;\n+\t\t\t}\n+\t\t}\n+\n+\t}\n+\n+\t/**\n+\t * CSV文字列をArrayListに格納する。\n+\t *\n+\t * @param line\n+\t * @param period\n+\t * @param autoTrim\n+\t * @return\n+\t * @throws Exception\n+\t */\n+\tpublic static ArrayList makeArrayList(String line, String period, boolean autoTrim, String _enclosed)\n+\t\t\tthrows Exception {\n+\n+\t\tArrayList list = new ArrayList();\n+\t\tint StartPos = 0;\n+\t\tint EndPos = 0;\n+\t\tint tmpStartPos = 0;\n+\t\tint tmpEndPos = 0;\n+\t\tString tmpStr = \"\";\n+\n+\t\twhile (StartPos <= line.length()) {\n+\n+\t\t\tEndPos = line.indexOf(period, StartPos); // 次の\"|\"の位置を検索\n+\t\t\tif (EndPos == -1) {\n+\t\t\t\tEndPos = line.length(); // 見つからなかった場合区切り終了位置は文字列の最後\n+\t\t\t}\n+\n+\t\t\ttmpStr = line.substring(StartPos, EndPos);\n+\n+\t\t\t// 囲み文字が0(なし)以外の場合は先頭と最期の囲み文字を除去\n+\t\t\tif (_enclosed.equals(\"1\")) {\n+\t\t\t\t// シングルクォート\n+\t\t\t\tif (tmpStr.startsWith(\"'\") && tmpStr.endsWith(\"'\")) {\n+\t\t\t\t\ttmpStartPos = StringUtils.indexOf(tmpStr, \"'\") + 1 ;\n+\t\t\t\t\ttmpEndPos = StringUtils.lastIndexOf(tmpStr, \"'\");\n+\t\t\t\t\ttmpStr = tmpStr.substring(tmpStartPos, tmpEndPos);\n+\t\t\t\t}\n+\t\t\t} else if (_enclosed.equals(\"2\")) {\n+\t\t\t\t// ダブルクォート\n+\t\t\t\tif (tmpStr.startsWith(\"\\\"\") && tmpStr.endsWith(\"\\\"\")) {\n+\t\t\t\t\ttmpStartPos = StringUtils.indexOf(tmpStr, \"\\\"\") + 1 ;\n+\t\t\t\t\ttmpEndPos = StringUtils.lastIndexOf(tmpStr, \"\\\"\");\n+\t\t\t\t\ttmpStr = tmpStr.substring(tmpStartPos, tmpEndPos);\n+\t\t\t\t}\n+\t\t\t}\n+\n+\t\t\t//\n+\t\t\tif (autoTrim) {\n+\t\t\t\tlist.add(StringUtils.trim(tmpStr));\n+\t\t\t} else {\n+\t\t\t\tlist.add(tmpStr);\n+\t\t\t}\n+\t\t\tStartPos = EndPos + 1; // 文字列中で発見したカンマの次の文字から再検索\n+\t\t}\n+\t\treturn list;\n+\t}\n+\n+\n+\n+\t/**\n+\t * CSV文字列の囲み文字チェック\n+\t *\n+\t * @param line\n+\t * @param period\n+\t * @param autoTrim\n+\t * @return\n+\t * @throws Exception\n+\t */\n+\tpublic static Boolean checkKakomi(String line, String period, String _enclosed)throws Exception {\n+\n+\t\tint StartPos = 0;\n+\t\tint EndPos = 0;\n+\t\tString tmpStr = \"\";\n+\n+\t\twhile (StartPos <= line.length()) {\n+\n+\t\t\tEndPos = line.indexOf(\",\", StartPos); // 次の\"|\"の位置を検索\n+\t\t\tif (EndPos == -1) {\n+\t\t\t\tEndPos = line.length(); // 見つからなかった場合区切り終了位置は文字列の最後\n+\t\t\t}\n+\n+\t\t\ttmpStr = line.substring(StartPos, EndPos);\n+\n+\t\t\tif(!tmpStr.equals(\"\")){\n+\n+\t\t\t\t// 囲み文字が0(なし)以外の場合は先頭と最期の囲み文字をチェック\n+\t\t\t\tif (_enclosed.equals(\"1\")) {\n+\t\t\t\t\t// シングルクォート\n+\t\t\t\t\tif (tmpStr.startsWith(\"'\") && tmpStr.endsWith(\"'\")) {\n+\t\t\t\t\t\t//ok;\n+\t\t\t\t\t}else{\n+\t\t\t\t\t\t//err\n+\t\t\t\t\t\treturn false;\n+\t\t\t\t\t}\n+\t\t\t\t} else if (_enclosed.equals(\"2\")) {\n+\t\t\t\t\t// ダブルクォート\n+\t\t\t\t\tif (tmpStr.startsWith(\"\\\"\") && tmpStr.endsWith(\"\\\"\")) {\n+\t\t\t\t\t\t//ok;\n+\t\t\t\t\t}else{\n+\t\t\t\t\t\t//err\n+\t\t\t\t\t\treturn false;\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t}\n+\n+\t\t\tStartPos = EndPos + 1; // 文字列中で発見したカンマの次の文字から再検索\n+\t\t}\n+\t\treturn true;\n+\n+\t}\n+\n+\n+\n+\n+\t/**\n+\t * SQLに使用できない文字列をエスケープする。\n+\t *\n+\t * @param inputStr\n+\t * @return\n+\t */\n+\tpublic static String escapeSQLCode(String inputStr) {\n+\t\tString resultStr = \"\";\n+\n+\t\tresultStr = StringUtils.replace(inputStr, \"'\", \"''\");\n+\t\tresultStr = StringUtils.replace(resultStr, \"\\\\\", \"\\\\\\\\\");\n+\n+\t\treturn resultStr;\n+\t}\n+\n+\t/**\n+\t * 指定位置から指定バイト数を切出す。(エンコードはWindows-31J)\n+\t *\n+\t * @param src 対象文字列\n+\t * @param start 開始位置(0から始まるインデックス)\n+\t * @param byteSize 切出バイト数\n+\t * @return\n+\t */\n+\tpublic static String substringByByte(final String src, int start, int byteSize) throws Exception {\n+\t\tint maxLength = 0;\n+\t\tif (StringUtils.isBlank(src)) {\n+\t\t\treturn src;\n+\t\t}\n+\n+\t\ttry {\n+\t\t\tbyte[] buf = src.substring(0, src.length()).getBytes(AppliConst.CHAR_WIN31J);\n+\n+\t\t\tif (buf.length - start > byteSize) {\n+\t\t\t\tmaxLength = byteSize;\n+\t\t\t} else {\n+\t\t\t\tif (buf.length - start < 1) {\n+\t\t\t\t\treturn \"\";\n+\t\t\t\t} else {\n+\t\t\t\t\tmaxLength = buf.length - start;\n+\t\t\t\t}\n+\t\t\t}\n+\n+\t\t\treturn new String(buf, start, maxLength, AppliConst.CHAR_WIN31J);\n+\t\t} catch (UnsupportedEncodingException e) {\n+\t\t\tthrow new Exception();\n+\t\t}\n+\t}\n+\n+\n+\n+\t/**\n+\t * defaultStringとtrimを行います。\n+\t * @param str\n+\t * @param defaultStr\n+\t * @return\n+\t * @throws Exception\n+\t */\n+\tpublic static String defaultTrimString(String str, String defaultStr) throws Exception {\n+\t\t// 20120223 修正 福島 空文字チェックを追加。\n+\t\tif (StringUtils.isNotBlank(str)) {\n+\t\t\treturn StringUtils.trim(StringUtils.defaultString(str, defaultStr)) ;\n+\t\t} else {\n+\t\t\treturn StringUtils.trim(defaultStr);\n+\t\t}\n+\n+\t}\n+\tpublic static String defaultTrimString(String str) {\n+\t\treturn StringUtils.trim(StringUtils.defaultString(str)) ;\n+\t}\n+\n+\n+\n+\t/**\n+\t * 引数のBigDecimal値をString値にして返却します。\n+\t * nullの場合はdefaultStrを返します。\n+\t * BigDeciamlをStringにしたいとき、nullの場合、0なのか\"\"なのかで使い分けてください。\n+\t * @param bd\n+\t * @param defaultStr\n+\t * @return\n+\t * @throws Exception\n+\t */\n+\tpublic static String defaultString(BigDecimal bd, String defaultStr) throws Exception {\n+\n+\t\t//Log log = LogFactory.getLog(KyohanUtils.class.getName()); // Log\n+\t\t//log.debug(\"bd = \" + bd) ;\n+\n+\t\tif (bd == null) {\n+\t\t\treturn defaultStr ;\n+\t\t} else {\n+\t\t\treturn bd.toString() ;\n+\t\t}\n+\t}\n+\tpublic static String defaultPlainString(BigDecimal bd, String defaultStr) throws Exception {\n+\n+\t\tif (bd == null) {\n+\t\t\treturn defaultStr ;\n+\t\t} else {\n+\t\t\treturn bd.toPlainString() ;\n+\t\t}\n+\t}\n+\n+\t/**\n+\t * bdがnullならdefaultDecを返します。\n+\t * それ以外はbdを返します。\n+\t * @param bd\n+\t * @param defaultDec\n+\t * @return\n+\t * @throws Exception\n+\t */\n+\tpublic static BigDecimal defaultBigDecimal(BigDecimal bd, int defaultInt) throws Exception {\n+\n+\t\t//Log log = LogFactory.getLog(KyohanUtils.class.getName()); // Log\n+\t\t//log.debug(\"bd = \" + bd) ;\n+\n+\t\tif (bd == null) {\n+\t\t\treturn new BigDecimal(defaultInt) ;\n+\t\t} else {\n+\t\t\treturn bd ;\n+\t\t}\n+\t}\n+\n+\t/**\n+\t * StringUtils.rightPad()のBytes版\n+\t * @param str\n+\t * @param size\n+\t * @return\n+\t * @throws Exception\n+\t */\n+\tpublic static String rightPadBytes(String str, int size) throws Exception{\n+\n+\t\treturn rightPadBytes(str, size, \" \");\n+\t}\n+\tpublic static String rightPadBytes(String str, int size, String padChar) throws Exception{\n+\n+\t\t//文字列長を取得\n+\t\tint len = str.getBytes(AppliConst.CHAR_WIN31J).length ;\n+\n+\t\t//指定サイズ－文字列長＝残りのスペース分の空白文字列を作成\n+\t\tString space = StringUtils.leftPad(\"\", size - len, padChar) ;\n+\n+\t\t//文字列の右側に空白をつけて返却\n+\t\treturn str + space ;\n+\t}\n+\t/**\n+\t * StringUtils.leftPad()のBytes版\n+\t * @param str\n+\t * @param size\n+\t * @return\n+\t * @throws Exception\n+\t */\n+\tpublic static String leftPadBytes(String str, int size) throws Exception{\n+\n+\t\treturn leftPadBytes(str, size, \" \");\n+\t}\n+\tpublic static String leftPadBytes(String str, int size, String padChar) throws Exception{\n+\n+\t\t//文字列長を取得\n+\t\tint len = str.getBytes(AppliConst.CHAR_WIN31J).length ;\n+\n+\t\t//指定サイズ－文字列長＝残りのスペース分の空白文字列を作成\n+\t\tString space = StringUtils.leftPad(\"\", size - len, padChar) ;\n+\n+\t\t//文字列の左側に空白をつけて返却\n+\t\treturn space + str ;\n+\t}\n+\n+\t/**\n+\t * ロケーションのエリアを返す\n+\t * @param locat ロケーション\n+\t * @return エリア\n+\t * @throws Exception\n+\t */\n+\tpublic static String getLocArea(String locat) throws Exception{\n+\n+\t\tString Res = \"\";\n+\n+\t\tif (locat != null){\n+\t\t\t//ｽﾍﾟｰｽorﾊｲﾌﾝ がある場合は除去\n+\t\t\tString wkLocat = StringUtils.trim(StringUtils.replace(locat,\"-\",\"\")) ;\n+\n+\t\t\tif(wkLocat.length() == 9) {\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 0, 1);\n+\n+\t\t\t}else if(wkLocat.length() == 10){\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 0, 2);\n+\n+\t\t\t}\n+\t\t}\n+\t\treturn Res;\n+\t}\n+\n+\t/**\n+\t * ロケーションの列を返す\n+\t * @param locat\n+\t * @return 列\n+\t * @throws Exception\n+\t */\n+\tpublic static String getLocRetu(String locat) throws Exception{\n+\n+\t\tString Res = \"\";\n+\n+\t\tif (locat != null){\n+\t\t\t//ｽﾍﾟｰｽorﾊｲﾌﾝ がある場合は除去\n+\t\t\tString wkLocat = StringUtils.trim(StringUtils.replace(locat,\"-\",\"\")) ;\n+\n+\t\t\tif(wkLocat.length() == 9) {\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 1, 3);\n+\n+\t\t\t}else if(wkLocat.length() == 10){\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 2, 4);\n+\n+\t\t\t}\n+\n+\t\t}\n+\t\treturn Res;\n+\t}\n+\n+\t/**\n+\t * ロケーションの連を返す\n+\t * @param locat\n+\t * @return 連\n+\t * @throws Exception\n+\t */\n+\tpublic static String getLocRen(String locat) throws Exception{\n+\n+\t\tString Res = \"\";\n+\n+\t\tif (locat != null){\n+\t\t\t//ｽﾍﾟｰｽorﾊｲﾌﾝ がある場合は除去\n+\t\t\tString wkLocat = StringUtils.trim(StringUtils.replace(locat,\"-\",\"\")) ;\n+\n+\n+\t\t\tif(wkLocat.length() == 9) {\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 3, 5);\n+\n+\t\t\t}else if(wkLocat.length() == 10){\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 4, 6);\n+\n+\t\t\t}\n+\n+\t\t}\n+\t\treturn Res;\n+\t}\n+\n+\t/**\n+\t * ロケーションの段を返す\n+\t * @param locat\n+\t * @return 段\n+\t * @throws Exception\n+\t */\n+\tpublic static String getLocDan(String locat) throws Exception{\n+\n+\t\tString Res = \"\";\n+\n+\t\tif (locat != null){\n+\t\t\t//ｽﾍﾟｰｽorﾊｲﾌﾝ がある場合は除去\n+\t\t\tString wkLocat = StringUtils.trim(StringUtils.replace(locat,\"-\",\"\")) ;\n+\n+\t\t\tif(wkLocat.length() == 9) {\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 5, 7);\n+\n+\t\t\t}else if(wkLocat.length() == 10){\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 6, 8);\n+\n+\t\t\t}\n+\t\t}\n+\t\treturn Res;\n+\t}\n+\n+\t/**\n+\t * ロケーションの間口を返す\n+\t * @param locat\n+\t * @return 間口\n+\t * @throws Exception\n+\t */\n+\tpublic static String getLocMag(String locat) throws Exception{\n+\n+\t\tString Res = \"\";\n+\n+\t\tif (locat != null){\n+\t\t\t//ｽﾍﾟｰｽorﾊｲﾌﾝ がある場合は除去\n+\t\t\tString wkLocat = StringUtils.trim(StringUtils.replace(locat,\"-\",\"\")) ;\n+\n+\n+\t\t\tif(wkLocat.length() == 9) {\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 7);\n+\n+\t\t\t}else if(wkLocat.length() == 10){\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 8);\n+\n+\t\t\t}\n+\t\t}\n+\t\treturn Res;\n+\t}\n+\n+\t/**\n+\t * ロケーションフォーマット\n+\t * @param locat\n+\t * @return\n+\t * @throws Exception\n+\t */\n+\tpublic static String formatDispLoc(String locat) {\n+\n+\t\tString Res = \"\";\n+\n+\t\tif (locat != null){\n+\t\t\t//ｽﾍﾟｰｽorﾊｲﾌﾝ がある場合は除去\n+\t\t\tString wkLocat = StringUtils.trim(StringUtils.replace(locat,\"-\",\"\")) ;\n+\t\t\tif(wkLocat.length() == 9) {\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 0, 1) +\"-\"+\n+\t\t\t\t\t   StringUtils.substring(wkLocat, 1, 3) +\"-\"+\n+\t\t\t\t\t   StringUtils.substring(wkLocat, 3, 5) +\"-\"+\n+\t\t\t\t\t   StringUtils.substring(wkLocat, 5, 7) +\"-\"+\n+\t\t\t\t\t   StringUtils.substring(wkLocat, 7) ;\n+\n+\t\t\t}else if(wkLocat.length() == 10){\n+\t\t\t\tRes =  StringUtils.substring(wkLocat, 0, 2) +\"-\"+\n+\t\t\t\t\t   StringUtils.substring(wkLocat, 2, 4) +\"-\"+\n+\t\t\t\t\t   StringUtils.substring(wkLocat, 4, 6) +\"-\"+\n+\t\t\t\t\t   StringUtils.substring(wkLocat, 6, 8) +\"-\"+\n+\t\t\t\t\t   StringUtils.substring(wkLocat, 8) ;\n+\t\t\t}\n+\t\t}\n+\t\treturn Res;\n+\t}\n+\n+\n+\t/**\n+\t * BigDecimalの値がnullだった場合に、NullValueを返す。\n+\t *\n+\t * @param data\n+\t * @return\n+\t * @throws Exception\n+\t */\n+\tpublic static BigDecimal getBigDecimalNumber(Object data, int NullValue) throws Exception {\n+\t\tif(data == null) {\n+\t\t\treturn new BigDecimal(NullValue);\n+\t\t} else {\n+\t\t\treturn (BigDecimal) data;\n+\t\t}\n+\t}\n+\n+\n+\t/**\n+\t * ＤＢ戻り値を文字列に変換するメソッド\n+\t * @param argSrc\n+\t * @return 文字列（NULL値の場合は空文字）を返す\n+\t */\n+\tpublic static String NtoS(Object argSrc) {\n+\t\tif (argSrc == null) {\n+\t\t\treturn \"\";\n+\t\t} else if ((argSrc instanceof BigDecimal) == true) {\n+\t\t\tBigDecimal bdSrc = (BigDecimal)argSrc;\n+\t\t\treturn bdSrc.toString();\n+\t\t} else if ((argSrc instanceof Integer) == true) {\n+\t\t\tInteger src = (Integer)argSrc;\n+\t\t\treturn src.toString();\n+\t\t} else if ((argSrc instanceof Long) == true) {\n+\t\t\tLong src = (Long)argSrc;\n+\t\t\treturn src.toString();\n+\t\t} else if ((argSrc instanceof String) == true) {\n+\t\t\treturn (String)argSrc;\n+\t\t} else {\n+\t\t\treturn \"\";\n+\t\t}\n+\t}\n+\n+\n+\t/**\n+\t * ＤＢ戻り値をINT型値に変換するメソッド\n+\t * @param argSrc\n+\t * @return INT値（変換不能の場合、NULL値の場合は0）を返す\n+\t */\n+\tpublic static int NtoInt(Object argSrc) {\n+\t\tif (argSrc == null) {\n+\t\t\treturn 0;\n+\t\t} else if ((argSrc instanceof BigDecimal) == true) {\n+\t\t\tBigDecimal bdSrc = (BigDecimal)argSrc;\n+\t\t\treturn bdSrc.intValue();\n+\t\t} else if ((argSrc instanceof Integer) == true) {\n+\t\t\tInteger src = (Integer)argSrc;\n+\t\t\treturn src.intValue();\n+\t\t} else if ((argSrc instanceof Long) == true) {\n+\t\t\tLong src = (Long)argSrc;\n+\t\t\treturn src.intValue();\n+\t\t} else if ((argSrc instanceof String) == true) {\n+\t\t\tString strSrc = (String)argSrc;\n+\t\t\tstrSrc = strSrc.trim();\n+\t\t\tstrSrc = strSrc.trim().replace(\",\", \"\"); //カンマ除去 ver1.7\n+\t\t\ttry {\n+\t\t\t\tif (chkNumInt(strSrc) == true) {\n+\t\t\t\t\treturn Integer.valueOf(strSrc);\n+\t\t\t\t}\n+\t\t\t\treturn 0;\n+\t\t\t} catch (Exception ex) {\n+\t\t\t\treturn 0;\n+\t\t\t}\n+\t\t} else {\n+\t\t\treturn 0;\n+\t\t}\n+\t}\n+\n+\n+\t/**\n+\t * ＤＢ戻り値をLONG型値に変換するメソッド\n+\t * @param argSrc\n+\t * @return LONG値（変換不能の場合、NULL値の場合は0）を返す\n+\t */\n+\tpublic static long NtoLong(Object argSrc) {\n+\t\tif (argSrc == null) {\n+\t\t\treturn 0;\n+\t\t} else if ((argSrc instanceof BigDecimal) == true) {\n+\t\t\tBigDecimal bdSrc = (BigDecimal)argSrc;\n+\t\t\treturn bdSrc.longValue();\n+\t\t} else if ((argSrc instanceof Integer) == true) {\n+\t\t\tInteger src = (Integer)argSrc;\n+\t\t\treturn src.longValue();\n+\t\t} else if ((argSrc instanceof Long) == true) {\n+\t\t\tLong src = (Long)argSrc;\n+\t\t\treturn src.longValue();\n+\t\t} else if ((argSrc instanceof String) == true) {\n+\t\t\tString strSrc = (String)argSrc;\n+\t\t\tstrSrc = strSrc.trim();\n+\t\t\tstrSrc = strSrc.trim().replace(\",\", \"\"); //カンマ除去 ver1.7\n+\t\t\ttry {\n+\t\t\t\tif (chkNumLong(strSrc) == true) {\n+\t\t\t\t\treturn Long.valueOf(strSrc);\n+\t\t\t\t}\n+\t\t\t\treturn 0;\n+\t\t\t} catch (Exception ex) {\n+\t\t\t\treturn 0;\n+\t\t\t}\n+\t\t} else {\n+\t\t\treturn 0;\n+\t\t}\n+\t}\n+\n+\n+\t/**\n+\t * ＤＢ戻り値をLONG型値に変換するメソッド\n+\t * @param argSrc\n+\t * @return LONG値（変換不能の場合、NULL値の場合は0）を返す\n+\t */\n+\tpublic static BigDecimal NtoBigDecimal(Object argSrc) {\n+\t\tif (argSrc == null) {\n+\t\t\treturn new BigDecimal(0);\n+\t\t} else if ((argSrc instanceof BigDecimal) == true) {\n+\t\t\treturn (BigDecimal)argSrc;\n+\t\t} else if ((argSrc instanceof Integer) == true) {\n+\t\t\tInteger src = (Integer)argSrc;\n+\t\t\treturn new BigDecimal(src);\n+\t\t} else if ((argSrc instanceof Long) == true) {\n+\t\t\tLong src = (Long)argSrc;\n+\t\t\treturn new BigDecimal(src);\n+\t\t} else if ((argSrc instanceof String) == true) {\n+\t\t\tString strSrc = (String)argSrc;\n+\t\t\tstrSrc = strSrc.trim();\n+\t\t\tstrSrc = strSrc.trim().replace(\",\", \"\"); //カンマ除去 ver1.7\n+\t\t\ttry {\n+\t\t\t\tif (chkNumDbl(strSrc) == true) {\n+\t\t\t\t\treturn new BigDecimal(strSrc);\n+\t\t\t\t}\n+\t\t\t\treturn new BigDecimal(0);\n+\t\t\t} catch (Exception ex) {\n+\t\t\t\treturn new BigDecimal(0);\n+\t\t\t}\n+\t\t} else {\n+\t\t\treturn new BigDecimal(0);","path":"WEB-INF/src/jp/co/atom/atwms/common/AtWMSUtils2.java","position":995,"original_position":995,"commit_id":"76c639a5f75d5d8fce04109294779d664109d8ed","original_commit_id":"76c639a5f75d5d8fce04109294779d664109d8ed","user":{"login":"datvv","id":14322888,"avatar_url":"https://avatars1.githubusercontent.com/u/14322888?v=3","gravatar_id":"","url":"https://api.github.com/users/datvv","html_url":"https://github.com/datvv","followers_url":"https://api.github.com/users/datvv/followers","following_url":"https://api.github.com/users/datvv/following{/other_user}","gists_url":"https://api.github.com/users/datvv/gists{/gist_id}","starred_url":"https://api.github.com/users/datvv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datvv/subscriptions","organizations_url":"https://api.github.com/users/datvv/orgs","repos_url":"https://api.github.com/users/datvv/repos","events_url":"https://api.github.com/users/datvv/events{/privacy}","received_events_url":"https://api.github.com/users/datvv/received_events","type":"User","site_admin":false},"body":"**Reporter**: PMD\n**Rule**: BigIntegerInstantiation\n**Severity**: WARN\n**File**: WEB-INF/src/jp/co/atom/atwms/common/AtWMSUtils2.java L995\n\nBasic https://pmd.github.io/pmd-5.8.1/pmd-java/rules/java/basic.html#BigIntegerInstantiation\n\n*<this is a auto generated comment from violation-comments-lib F7F8ASD8123FSDF>*\n","created_at":"2017-07-06T04:10:29Z","updated_at":"2017-07-06T04:10:29Z","html_url":"https://github.com/datvv/At2/pull/1#discussion_r125807879","pull_request_url":"https://api.github.com/repos/datvv/At2/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/datvv/At2/pulls/comments/125807879"},"html":{"href":"https://github.com/datvv/At2/pull/1#discussion_r125807879"},"pull_request":{"href":"https://api.github.com/repos/datvv/At2/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/datvv/At2/pulls/1","id":129080065,"html_url":"https://github.com/datvv/At2/pull/1","diff_url":"https://github.com/datvv/At2/pull/1.diff","patch_url":"https://github.com/datvv/At2/pull/1.patch","issue_url":"https://api.github.com/repos/datvv/At2/issues/1","number":1,"state":"open","locked":false,"title":"test-basic-convention","user":{"login":"datvv","id":14322888,"avatar_url":"https://avatars1.githubusercontent.com/u/14322888?v=3","gravatar_id":"","url":"https://api.github.com/users/datvv","html_url":"https://github.com/datvv","followers_url":"https://api.github.com/users/datvv/followers","following_url":"https://api.github.com/users/datvv/following{/other_user}","gists_url":"https://api.github.com/users/datvv/gists{/gist_id}","starred_url":"https://api.github.com/users/datvv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datvv/subscriptions","organizations_url":"https://api.github.com/users/datvv/orgs","repos_url":"https://api.github.com/users/datvv/repos","events_url":"https://api.github.com/users/datvv/events{/privacy}","received_events_url":"https://api.github.com/users/datvv/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-06T00:12:51Z","updated_at":"2017-07-06T04:10:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"197520bea2847f9dd0a66e9f43127c8addc3a80b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/datvv/At2/pulls/1/commits","review_comments_url":"https://api.github.com/repos/datvv/At2/pulls/1/comments","review_comment_url":"https://api.github.com/repos/datvv/At2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datvv/At2/issues/1/comments","statuses_url":"https://api.github.com/repos/datvv/At2/statuses/76c639a5f75d5d8fce04109294779d664109d8ed","head":{"label":"datvv:branch-testing","ref":"branch-testing","sha":"76c639a5f75d5d8fce04109294779d664109d8ed","user":{"login":"datvv","id":14322888,"avatar_url":"https://avatars1.githubusercontent.com/u/14322888?v=3","gravatar_id":"","url":"https://api.github.com/users/datvv","html_url":"https://github.com/datvv","followers_url":"https://api.github.com/users/datvv/followers","following_url":"https://api.github.com/users/datvv/following{/other_user}","gists_url":"https://api.github.com/users/datvv/gists{/gist_id}","starred_url":"https://api.github.com/users/datvv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datvv/subscriptions","organizations_url":"https://api.github.com/users/datvv/orgs","repos_url":"https://api.github.com/users/datvv/repos","events_url":"https://api.github.com/users/datvv/events{/privacy}","received_events_url":"https://api.github.com/users/datvv/received_events","type":"User","site_admin":false},"repo":{"id":96370437,"name":"At2","full_name":"datvv/At2","owner":{"login":"datvv","id":14322888,"avatar_url":"https://avatars1.githubusercontent.com/u/14322888?v=3","gravatar_id":"","url":"https://api.github.com/users/datvv","html_url":"https://github.com/datvv","followers_url":"https://api.github.com/users/datvv/followers","following_url":"https://api.github.com/users/datvv/following{/other_user}","gists_url":"https://api.github.com/users/datvv/gists{/gist_id}","starred_url":"https://api.github.com/users/datvv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datvv/subscriptions","organizations_url":"https://api.github.com/users/datvv/orgs","repos_url":"https://api.github.com/users/datvv/repos","events_url":"https://api.github.com/users/datvv/events{/privacy}","received_events_url":"https://api.github.com/users/datvv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/datvv/At2","description":null,"fork":false,"url":"https://api.github.com/repos/datvv/At2","forks_url":"https://api.github.com/repos/datvv/At2/forks","keys_url":"https://api.github.com/repos/datvv/At2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datvv/At2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datvv/At2/teams","hooks_url":"https://api.github.com/repos/datvv/At2/hooks","issue_events_url":"https://api.github.com/repos/datvv/At2/issues/events{/number}","events_url":"https://api.github.com/repos/datvv/At2/events","assignees_url":"https://api.github.com/repos/datvv/At2/assignees{/user}","branches_url":"https://api.github.com/repos/datvv/At2/branches{/branch}","tags_url":"https://api.github.com/repos/datvv/At2/tags","blobs_url":"https://api.github.com/repos/datvv/At2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datvv/At2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datvv/At2/git/refs{/sha}","trees_url":"https://api.github.com/repos/datvv/At2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datvv/At2/statuses/{sha}","languages_url":"https://api.github.com/repos/datvv/At2/languages","stargazers_url":"https://api.github.com/repos/datvv/At2/stargazers","contributors_url":"https://api.github.com/repos/datvv/At2/contributors","subscribers_url":"https://api.github.com/repos/datvv/At2/subscribers","subscription_url":"https://api.github.com/repos/datvv/At2/subscription","commits_url":"https://api.github.com/repos/datvv/At2/commits{/sha}","git_commits_url":"https://api.github.com/repos/datvv/At2/git/commits{/sha}","comments_url":"https://api.github.com/repos/datvv/At2/comments{/number}","issue_comment_url":"https://api.github.com/repos/datvv/At2/issues/comments{/number}","contents_url":"https://api.github.com/repos/datvv/At2/contents/{+path}","compare_url":"https://api.github.com/repos/datvv/At2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datvv/At2/merges","archive_url":"https://api.github.com/repos/datvv/At2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datvv/At2/downloads","issues_url":"https://api.github.com/repos/datvv/At2/issues{/number}","pulls_url":"https://api.github.com/repos/datvv/At2/pulls{/number}","milestones_url":"https://api.github.com/repos/datvv/At2/milestones{/number}","notifications_url":"https://api.github.com/repos/datvv/At2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datvv/At2/labels{/name}","releases_url":"https://api.github.com/repos/datvv/At2/releases{/id}","deployments_url":"https://api.github.com/repos/datvv/At2/deployments","created_at":"2017-07-05T23:55:40Z","updated_at":"2017-07-06T00:03:32Z","pushed_at":"2017-07-06T03:55:46Z","git_url":"git://github.com/datvv/At2.git","ssh_url":"git@github.com:datvv/At2.git","clone_url":"https://github.com/datvv/At2.git","svn_url":"https://github.com/datvv/At2","homepage":null,"size":46111,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"datvv:master","ref":"master","sha":"f9e231c85b0d3c748fa39e75e8251a3c60877576","user":{"login":"datvv","id":14322888,"avatar_url":"https://avatars1.githubusercontent.com/u/14322888?v=3","gravatar_id":"","url":"https://api.github.com/users/datvv","html_url":"https://github.com/datvv","followers_url":"https://api.github.com/users/datvv/followers","following_url":"https://api.github.com/users/datvv/following{/other_user}","gists_url":"https://api.github.com/users/datvv/gists{/gist_id}","starred_url":"https://api.github.com/users/datvv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datvv/subscriptions","organizations_url":"https://api.github.com/users/datvv/orgs","repos_url":"https://api.github.com/users/datvv/repos","events_url":"https://api.github.com/users/datvv/events{/privacy}","received_events_url":"https://api.github.com/users/datvv/received_events","type":"User","site_admin":false},"repo":{"id":96370437,"name":"At2","full_name":"datvv/At2","owner":{"login":"datvv","id":14322888,"avatar_url":"https://avatars1.githubusercontent.com/u/14322888?v=3","gravatar_id":"","url":"https://api.github.com/users/datvv","html_url":"https://github.com/datvv","followers_url":"https://api.github.com/users/datvv/followers","following_url":"https://api.github.com/users/datvv/following{/other_user}","gists_url":"https://api.github.com/users/datvv/gists{/gist_id}","starred_url":"https://api.github.com/users/datvv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datvv/subscriptions","organizations_url":"https://api.github.com/users/datvv/orgs","repos_url":"https://api.github.com/users/datvv/repos","events_url":"https://api.github.com/users/datvv/events{/privacy}","received_events_url":"https://api.github.com/users/datvv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/datvv/At2","description":null,"fork":false,"url":"https://api.github.com/repos/datvv/At2","forks_url":"https://api.github.com/repos/datvv/At2/forks","keys_url":"https://api.github.com/repos/datvv/At2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datvv/At2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datvv/At2/teams","hooks_url":"https://api.github.com/repos/datvv/At2/hooks","issue_events_url":"https://api.github.com/repos/datvv/At2/issues/events{/number}","events_url":"https://api.github.com/repos/datvv/At2/events","assignees_url":"https://api.github.com/repos/datvv/At2/assignees{/user}","branches_url":"https://api.github.com/repos/datvv/At2/branches{/branch}","tags_url":"https://api.github.com/repos/datvv/At2/tags","blobs_url":"https://api.github.com/repos/datvv/At2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datvv/At2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datvv/At2/git/refs{/sha}","trees_url":"https://api.github.com/repos/datvv/At2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datvv/At2/statuses/{sha}","languages_url":"https://api.github.com/repos/datvv/At2/languages","stargazers_url":"https://api.github.com/repos/datvv/At2/stargazers","contributors_url":"https://api.github.com/repos/datvv/At2/contributors","subscribers_url":"https://api.github.com/repos/datvv/At2/subscribers","subscription_url":"https://api.github.com/repos/datvv/At2/subscription","commits_url":"https://api.github.com/repos/datvv/At2/commits{/sha}","git_commits_url":"https://api.github.com/repos/datvv/At2/git/commits{/sha}","comments_url":"https://api.github.com/repos/datvv/At2/comments{/number}","issue_comment_url":"https://api.github.com/repos/datvv/At2/issues/comments{/number}","contents_url":"https://api.github.com/repos/datvv/At2/contents/{+path}","compare_url":"https://api.github.com/repos/datvv/At2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datvv/At2/merges","archive_url":"https://api.github.com/repos/datvv/At2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datvv/At2/downloads","issues_url":"https://api.github.com/repos/datvv/At2/issues{/number}","pulls_url":"https://api.github.com/repos/datvv/At2/pulls{/number}","milestones_url":"https://api.github.com/repos/datvv/At2/milestones{/number}","notifications_url":"https://api.github.com/repos/datvv/At2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datvv/At2/labels{/name}","releases_url":"https://api.github.com/repos/datvv/At2/releases{/id}","deployments_url":"https://api.github.com/repos/datvv/At2/deployments","created_at":"2017-07-05T23:55:40Z","updated_at":"2017-07-06T00:03:32Z","pushed_at":"2017-07-06T03:55:46Z","git_url":"git://github.com/datvv/At2.git","ssh_url":"git@github.com:datvv/At2.git","clone_url":"https://github.com/datvv/At2.git","svn_url":"https://github.com/datvv/At2","homepage":null,"size":46111,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datvv/At2/pulls/1"},"html":{"href":"https://github.com/datvv/At2/pull/1"},"issue":{"href":"https://api.github.com/repos/datvv/At2/issues/1"},"comments":{"href":"https://api.github.com/repos/datvv/At2/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/datvv/At2/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/datvv/At2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datvv/At2/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/datvv/At2/statuses/76c639a5f75d5d8fce04109294779d664109d8ed"}}}}
{"actor":{"display_login":"datvv"}}