• R/O
  • SSH

JinParser: Commit

JinParserライブラリは、CGIゲーム「人狼BBS」のクライアント制作者向けに作られたJavaライブラリです。


Commit MetaInfo

Revisionaa528648c861e626697e1bd14412096e4455c19e (tree)
Zeit2018-03-21 14:19:19
Autor <olyutorskii@user...>

Log Message

modify checkstyle warnings

Ändern Zusammenfassung

Diff

diff -r 59ed9bfbed3b -r aa528648c861 config/checkstyle/checkstyle.xml
--- a/config/checkstyle/checkstyle.xml Wed Mar 21 13:04:27 2018 +0900
+++ b/config/checkstyle/checkstyle.xml Wed Mar 21 14:19:19 2018 +0900
@@ -83,6 +83,8 @@
8383 <property name="tabWidth" value="8"/>
8484 <property name="fileExtensions" value="java"/>
8585
86+ <module name="SuppressWarningsHolder" />
87+
8688
8789 <!-- Annotations -->
8890
@@ -125,7 +127,9 @@
125127 <module name="ArrayTrailingComma" />
126128 <module name="AvoidInlineConditionals" />
127129 <module name="CovariantEquals" />
128- <module name="DeclarationOrder" />
130+ <module name="DeclarationOrder">
131+ <property name="id" value="declarationorder" />
132+ </module>
129133 <module name="DefaultComesLast" />
130134 <module name="EmptyStatement" />
131135 <module name="EqualsAvoidNull" />
@@ -173,7 +177,9 @@
173177 <module name="SuperClone" />
174178 <module name="SuperFinalize" />
175179 <module name="UnnecessaryParentheses" />
176- <module name="VariableDeclarationUsageDistance" />
180+ <module name="VariableDeclarationUsageDistance">
181+ <property name="id" value="declarationdistance" />
182+ </module>
177183
178184
179185 <!-- Imports -->
diff -r 59ed9bfbed3b -r aa528648c861 src/main/java/jp/sourceforge/jindolf/parser/HtmlParser.java
--- a/src/main/java/jp/sourceforge/jindolf/parser/HtmlParser.java Wed Mar 21 13:04:27 2018 +0900
+++ b/src/main/java/jp/sourceforge/jindolf/parser/HtmlParser.java Wed Mar 21 14:19:19 2018 +0900
@@ -15,6 +15,8 @@
1515 * 人狼BBS各種XHTML文字列のパースを行いハンドラに通知する。
1616 */
1717 @SuppressWarnings({
18+ "checkstyle:declarationdistance",
19+ "checkstyle:declarationorder",
1820 "PMD.FieldDeclarationsShouldBeAtStartOfClass",
1921 "PMD.PrematureDeclaration"
2022 })
diff -r 59ed9bfbed3b -r aa528648c861 src/main/java/jp/sourceforge/jindolf/parser/SjisNotifier.java
--- a/src/main/java/jp/sourceforge/jindolf/parser/SjisNotifier.java Wed Mar 21 13:04:27 2018 +0900
+++ b/src/main/java/jp/sourceforge/jindolf/parser/SjisNotifier.java Wed Mar 21 14:19:19 2018 +0900
@@ -36,7 +36,7 @@
3636 * <p>TODO: 1.7系ランタイムによっては
3737 * [0x81, 0x7f]が「÷」にデコードされる場合がある問題が未解決。
3838 *
39- * @see https://en.wikipedia.org/wiki/Shift_JIS
39+ * @see <a href="https://en.wikipedia.org/wiki/Shift_JIS">Shift_JIS</a>
4040 * @see sun.nio.cs.ext.SJIS
4141 */
4242 public class SjisNotifier extends DecodeNotifier{
diff -r 59ed9bfbed3b -r aa528648c861 src/main/java/jp/sourceforge/jindolf/parser/SysEventParser.java
--- a/src/main/java/jp/sourceforge/jindolf/parser/SysEventParser.java Wed Mar 21 13:04:27 2018 +0900
+++ b/src/main/java/jp/sourceforge/jindolf/parser/SysEventParser.java Wed Mar 21 14:19:19 2018 +0900
@@ -18,6 +18,8 @@
1818 * パース進行に従い{@link SysEventHandler}の各種メソッドが呼び出される。
1919 */
2020 @SuppressWarnings({
21+ "checkstyle:declarationdistance",
22+ "checkstyle:declarationorder",
2123 "PMD.FieldDeclarationsShouldBeAtStartOfClass",
2224 "PMD.PrematureDeclaration"
2325 })
diff -r 59ed9bfbed3b -r aa528648c861 src/main/java/jp/sourceforge/jindolf/parser/TalkParser.java
--- a/src/main/java/jp/sourceforge/jindolf/parser/TalkParser.java Wed Mar 21 13:04:27 2018 +0900
+++ b/src/main/java/jp/sourceforge/jindolf/parser/TalkParser.java Wed Mar 21 14:19:19 2018 +0900
@@ -14,7 +14,11 @@
1414 * 人狼BBSシステムが出力する各発言箇所のパーサ。
1515 * パース進行に従い{@link TalkHandler}の各種メソッドが呼び出される。
1616 */
17-@SuppressWarnings("PMD.FieldDeclarationsShouldBeAtStartOfClass")
17+@SuppressWarnings({
18+ "checkstyle:declarationorder",
19+ "PMD.FieldDeclarationsShouldBeAtStartOfClass",
20+ "PMD.PrematureDeclaration"
21+})
1822 public class TalkParser extends AbstractParser{
1923
2024 private TalkHandler talkHandler;
Show on old repository browser