• R/O
  • HTTP
  • SSH
  • HTTPS

Jovsonz: Commit

Jovsonz is a JSON library for Java


Commit MetaInfo

Revision4a9a3b407fd74250f32e46d60f4d4dfbae64aef2 (tree)
Zeit2019-05-03 17:28:12
AutorOlyutorskii <olyutorskii@user...>
CommiterOlyutorskii

Log Message

Merge commit '88829358dc86447e823fdbf58d796beb05e2388c' into develop

Ändern Zusammenfassung

  • modified: CHANGELOG.txt (diff)
  • modified: README.txt (diff)
  • delete: SCM.txt
  • add: config/pmd/pmdrules.xml (diff)
  • delete: fixcrlf.xml
  • modified: pom.xml (diff)
  • delete: src/main/config/checks.xml => config/checkstyle/checkstyle.xml
  • delete: src/main/config/pmdrules.xml
  • delete: src/main/config/suppressions.xml => config/checkstyle/checkstyle-suppressions.xml
  • delete: src/{main/assembly/descriptor.xml => assembly/src.xml}

Diff

--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -6,8 +6,9 @@ Jovsonz 変更履歴
66
77 X.XXX.X (20XX-XX-XX)
88 ・Maven3対応。
9- ・JDK1.7が必須となる。
10- ・OSDN.JP 対応。
9+ ・JDK1.8が必須となる。
10+ ・SourceForge.JP → OSDN.JP → OSDN.net 対応。
11+ ・Mercurial(1.101.3-SNAPSHOT)からGit(1.101.103-SNAPSHOT)へSCMを移行。
1112
1213 1.101.2 (2011-05-13)
1314 ・初回リリース。
--- a/README.txt
+++ b/README.txt
@@ -16,14 +16,14 @@ JovsonzはJindolfプロジェクトから派生したオープンソースプロ
1616
1717 === 実行環境 ===
1818
19- - JovsonzはJava言語(JavaSE7)で記述されたプログラムです。
20- - JovsonzはJRE1.7に準拠したJava実行環境で利用できるように作られています。
21- 原則として、JRE1.7に準拠した実行系であれば、プラットフォームを選びません。
19+ - JovsonzはJava言語(JavaSE8)で記述されたプログラムです。
20+ - JovsonzはJavaSE8に準拠したJava実行環境で利用できるように作られています。
21+ 原則として、JavaSE8に準拠した実行系であれば、プラットフォームを選びません。
2222
2323
2424 === 開発プロジェクト運営元 ===
2525
26- https://osdn.jp/projects/jovsonz/ まで。
26+ https://osdn.net/projects/jovsonz/ まで。
2727
2828
2929 === ディレクトリ内訳構成 ===
@@ -39,9 +39,6 @@ JovsonzはJindolfプロジェクトから派生したオープンソースプロ
3939 ./LICENSE.txt
4040 ライセンスに関して。
4141
42-./SCM.txt
43- ソースコード管理に関して。
44-
4542 ./pom.xml
4643 Maven3用プロジェクト構成定義ファイル。
4744
@@ -51,13 +48,13 @@ JovsonzはJindolfプロジェクトから派生したオープンソースプロ
5148 ./src/test/java/
5249 JUnit 4.* 用のユニットテストコード。
5350
54-./src/main/config/
51+./config/
5552 各種ビルド・構成管理に必要なファイル群。
5653
57-./src/main/config/checks.xml
54+./config/checkstyle/checkstyle.xml
5855 Checkstyle用configファイル。
5956
60-./src/main/config/pmdrules.xml
57+./config/pmd/pmdrules.xml
6158 PMD用ルール定義ファイル。
6259
6360
--- a/SCM.txt
+++ /dev/null
@@ -1,48 +0,0 @@
1-[UTF-8 Japanese]
2-
3- J o v s o n z
4- バージョン管理システムに関する情報
5-
6- Copyright(c) 2011 olyutorskii
7-
8-
9-=== バージョン管理体制 ===
10-
11- このアーカイブの原本は、Mercurial(hg)でバージョン管理されています。
12- このアーカイブの原本となる開発資産は、
13- https://osdn.jp/projects/jovsonz/scm/hg/Jovsonz/
14- を上位に持つMercurialリポジトリで管理されています。
15- アーカイブの代わりにMercurialを通じての開発資産へのアクセスが可能です。
16- # hg clone http://hg.osdn.jp/view/jovsonz/Jovsonz
17-
18-
19-=== 各種設定ファイル ===
20-
21-./.hgignore
22-
23-Mercurial 管理の対象外にさせたいファイル群の設定です。
24-IDE独自の設定ファイルは基本的に管理対象外とするつもりです。
25-
26-
27-./.hgeol
28-
29-Mercurial の EOL Extension 用の設定です。
30-非バイナリなテキストファイルの改行コードに関する設定です。
31-・拡張子が *.txt なローカルファイルの改行文字はローカルの環境に合わせる。
32-・拡張子が *.java なローカルファイルの改行文字はローカルの環境に合わせる。
33-・それ以外の非バイナリなローカルファイルの改行文字は基本LFで統一。
34-・リポジトリ上の全ての非バイナリファイルの改行文字は基本LFで統一。
35-というポリシーで運用しています。
36-EOL Extensionを有効にしないと設定が反映されません。
37-
38-
39-=== リンク ===
40-
41-・https://www.mercurial-scm.org/
42-・https://www.mercurial-scm.org/wiki/.hgignore
43-・https://www.selenic.com/mercurial/hgignore.5.html
44-・https://www.mercurial-scm.org/wiki/EolExtension
45-・http://tortoisehg.bitbucket.org/
46-
47-
48---- EOF ---
--- a/src/main/config/suppressions.xml
+++ b/config/checkstyle/checkstyle-suppressions.xml
@@ -1,14 +1,14 @@
11 <?xml version="1.0" encoding="UTF-8" ?>
22
33 <!DOCTYPE suppressions PUBLIC
4- "-//Puppy Crawl//DTD Suppressions 1.1//EN"
5- "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
4+ "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
5+ "https://checkstyle.org/dtds/suppressions_1_2.dtd">
66
77 <!--
8- Checkstyle用警告抑止設定
9- ※ SuppressionFilter モジュール用
8+ Checkstyle suppressions
9+ for Checkstyle 8.18 or later
1010
11- [ http://checkstyle.sourceforge.net/ ]
11+ [ https://checkstyle.org/ ]
1212
1313 Copyright(c) 2010 olyutorskii
1414 -->
@@ -16,6 +16,9 @@
1616
1717 <suppressions>
1818
19+ <!-- Annotations -->
20+ <suppress files="" checks="AnnotationOnSameLine" />
21+
1922 <!-- Class Design -->
2023 <suppress files="" checks="DesignForExtension" />
2124
@@ -23,20 +26,25 @@
2326 <suppress files="" checks="ExplicitInitialization" />
2427 <suppress files="" checks="FinalLocalVariable" />
2528 <suppress files="" checks="MagicNumber" />
29+ <suppress files="" checks="OneStatementPerLine" />
2630
2731 <!-- Imports -->
2832 <suppress files="" checks="ImportControl" />
2933
3034 <!-- Javadoc Comments -->
35+ <suppress files="" checks="JavadocTagContinuationIndentation" />
3136 <suppress files="" checks="SummaryJavadocCheck" />
32- <!-- 句読点対応待ち -->
33- <suppress files="" checks="SingleLineJavadoc" />
34- <!-- ignoredTagsプロパティ対応待ち -->
3537
3638 <!-- Miscellaneous -->
3739 <suppress files="" checks="FinalParameters" />
3840 <suppress files="" checks="TrailingComment" />
3941
42+ <!-- Modifiers -->
43+ <suppress files="" checks="InterfaceMemberImpliedModifier" />
44+
45+ <!-- Whitespace -->
46+ <suppress files="" checks="SingleSpaceSeparator" />
47+
4048 </suppressions>
4149
4250
--- a/src/main/config/checks.xml
+++ b/config/checkstyle/checkstyle.xml
@@ -1,15 +1,14 @@
11 <?xml version="1.0" encoding="UTF-8" ?>
22
33 <!DOCTYPE module PUBLIC
4- "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
5- "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
4+ "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
5+ "https://checkstyle.org/dtds/configuration_1_3.dtd">
66
77 <!--
8- Checkstyle用チェック項目定義。
8+ Checkstyle modules
9+ for Checkstyle 8.18 or later
910
10- Checkstyle 6.1 以降向けに記述。
11-
12- [ http://checkstyle.sourceforge.net/ ]
11+ [ https://checkstyle.org/ ]
1312
1413 Copyright(c) 2010 olyutorskii
1514 -->
@@ -19,21 +18,24 @@
1918
2019 <property name="charset" value="UTF-8" />
2120 <property name="localeCountry" value="JP" />
22- <property name="localeLanguage" value="ja" />
21+ <property name="localeLanguage" value="en" />
22+ <!--property name="localeLanguage" value="ja" /-->
23+ <property name="fileExtensions" value="java, xml, properties" />
2324 <property name="severity" value="error" />
2425
2526
2627 <!-- Filters -->
2728 <module name="SeverityMatchFilter" />
28- <module name="SuppressionCommentFilter" />
29- <module name="SuppressionFilter">
30- <property name="file" value="src/main/config/suppressions.xml" />
31- </module>
29+ <!--module name="SuppressionFilter" /-->
3230 <module name="SuppressWarningsFilter" />
33- <module name="SuppressWithNearbyCommentFilter" />
31+ <module name="SuppressWithPlainTextCommentFilter" />
3432
3533
3634 <!-- Headers -->
35+ <module name="Header">
36+ <property name="header" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;" />
37+ <property name="fileExtensions" value="xml" />
38+ </module>
3739 <module name="RegexpHeader">
3840 <property name="header" value="^/\*$\n^ \*( .*)?$\n^ \*/$\n" />
3941 <property name="multiLines" value="2" />
@@ -57,7 +59,7 @@
5759 <module name="RegexpMultiline">
5860 <property name="format" value="[\u000b\f\u001a]" />
5961 </module>
60-<!--<module name="RegexpOnFilename" /> 6.15 or later -->
62+ <module name="RegexpOnFilename" />
6163 <module name="RegexpSingleline">
6264 <property name="format" value="\s+$" />
6365 </module>
@@ -77,14 +79,31 @@
7779 <module name="FileTabCharacter" />
7880
7981
82+ <module name="BeforeExecutionExclusionFileFilter">
83+ <property name="fileNamePattern" value="module\-info\.java$" />
84+ </module>
85+
86+
8087 <module name="TreeWalker">
8188
82- <property name="tabWidth" value="8"/>
89+ <property name="tabWidth" value="8" />
90+ <property name="fileExtensions" value="java" />
91+
92+ <module name="SuppressWarningsHolder" />
93+
94+
95+ <!-- Filters -->
96+
97+ <module name="SuppressionCommentFilter" />
98+ <module name="SuppressWithNearbyCommentFilter" />
99+ <!--module name="SuppressionXpathFilter" /-->
100+ <!--module name="SuppressionXpathSingleFilter" /-->
83101
84102
85103 <!-- Annotations -->
86104
87105 <module name="AnnotationLocation" />
106+ <module name="AnnotationOnSameLine" />
88107 <module name="AnnotationUseStyle" />
89108 <module name="MissingDeprecated" />
90109 <module name="MissingOverride" />
@@ -94,12 +113,13 @@
94113
95114
96115 <!-- Block Checks -->
116+
97117 <module name="AvoidNestedBlocks" />
98118 <module name="EmptyBlock" />
99-<!-- <module name="EmptyCatchBlock" /> 6.4 or later -->
119+ <module name="EmptyCatchBlock" />
100120 <module name="LeftCurly" />
101121 <module name="NeedBraces">
102- <property name="tokens" value="LITERAL_DO" />
122+ <property name="allowSingleLineStatement" value="true" />
103123 </module>
104124 <module name="RightCurly" />
105125
@@ -135,6 +155,7 @@
135155 <module name="HiddenField">
136156 <property name="ignoreConstructorParameter" value="true" />
137157 <property name="ignoreSetter" value="true" />
158+ <property name="setterCanReturnItsClass" value="true" />
138159 <property name="ignoreAbstractMethods" value="true" />
139160 </module>
140161 <module name="IllegalCatch" />
@@ -156,9 +177,6 @@
156177 <module name="ModifiedControlVariable" />
157178 <module name="MultipleStringLiterals" />
158179 <module name="MultipleVariableDeclarations" />
159- <module name="SimplifyBooleanExpression" />
160- <module name="SimplifyBooleanReturn" />
161- <module name="StringLiteralEquality" />
162180 <module name="NestedForDepth" />
163181 <module name="NestedIfDepth" />
164182 <module name="NestedTryDepth" />
@@ -191,7 +209,7 @@
191209 <module name="AvoidStaticImport" />
192210 <module name="CustomImportOrder" />
193211 <module name="IllegalImport" />
194- <module name="ImportControl" />
212+ <!--module name="ImportControl" /-->
195213 <module name="ImportOrder" />
196214 <module name="RedundantImport" />
197215 <module name="UnusedImports" />
@@ -234,14 +252,13 @@
234252
235253 <module name="ArrayTypeStyle" />
236254 <module name="AvoidEscapedUnicodeCharacters">
237- <property name="allowEscapesForControlCharacters" value="true"/>
238- <property name="allowByTailComment" value="true"/>
239- <property name="allowIfAllCharactersEscaped" value="true"/>
240- <property name="allowNonPrintableEscapes" value="true"/>
255+ <property name="allowEscapesForControlCharacters" value="true" />
256+ <property name="allowByTailComment" value="true" />
257+ <property name="allowIfAllCharactersEscaped" value="true" />
258+ <property name="allowNonPrintableEscapes" value="true" />
241259 </module>
242-<!-- <module name="CommentsIndentation" /> 6.10 or later -->
260+ <module name="CommentsIndentation" />
243261 <module name="DescendantToken" />
244- <module name="FileContentsHolder" />
245262 <module name="FinalParameters" />
246263 <module name="Indentation">
247264 <property name="caseIndent" value="0" />
@@ -257,6 +274,8 @@
257274
258275 <!-- Modifiers -->
259276
277+ <module name="ClassMemberImpliedModifier" />
278+ <module name="InterfaceMemberImpliedModifier" />
260279 <module name="ModifierOrder" />
261280 <module name="RedundantModifier" />
262281
@@ -270,10 +289,11 @@
270289 value="^Abstract.*$|^.*Factory$|^.*Builder$|^.*Adapter$"
271290 />
272291 </module>
273-<!-- <module name="CatchParameterName" /> 6.14 or later -->
292+ <module name="CatchParameterName" />
274293 <module name="ClassTypeParameterName" />
275294 <module name="ConstantName" />
276295 <module name="InterfaceTypeParameterName" />
296+ <module name="LambdaParameterName" />
277297 <module name="LocalFinalVariableName">
278298 <property name="format" value="^[a-z][_a-zA-Z0-9]*$" />
279299 </module>
@@ -398,8 +418,11 @@
398418 <property name="tokens" value="DOT" />
399419 <property name="option" value="nl" />
400420 </module>
421+ <module name="SingleSpaceSeparator" />
401422 <module name="TypecastParenPad" />
402- <module name="WhitespaceAfter" />
423+ <module name="WhitespaceAfter" >
424+ <property name="tokens" value="COMMA, SEMI," />
425+ </module>
403426 <module name="WhitespaceAround">
404427 <property
405428 name="tokens"
@@ -420,6 +443,7 @@
420443
421444 </module>
422445
446+
423447 </module>
424448
425449 <!-- EOF -->
--- /dev/null
+++ b/config/pmd/pmdrules.xml
@@ -0,0 +1,82 @@
1+<?xml version="1.0" encoding="UTF-8" ?>
2+
3+<!--
4+ Custom rule set
5+ for PMD [ https://pmd.github.io/ ] 6.13.0 or later
6+
7+ Copyright(c) 2016 olyutorskii
8+-->
9+
10+<ruleset
11+ xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
12+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13+ xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0
14+ http://pmd.sourceforge.net/ruleset_2_0_0.xsd"
15+ name="Custom ruleset"
16+>
17+
18+ <description>
19+ custom rulesets
20+ </description>
21+
22+ <rule ref="category/java/bestpractices.xml" />
23+
24+ <rule ref="category/java/codestyle.xml" >
25+ <exclude name="CommentDefaultAccessModifier" />
26+ <exclude name="DefaultPackage" />
27+ <exclude name="LocalVariableCouldBeFinal" />
28+ <exclude name="MethodArgumentCouldBeFinal" />
29+ <exclude name="OnlyOneReturn" />
30+ <exclude name="ShortVariable" />
31+ <exclude name="UnnecessaryLocalBeforeReturn" />
32+ <exclude name="UnnecessaryReturn" />
33+ </rule>
34+ <rule ref="category/java/codestyle.xml/ControlStatementBraces" >
35+ <properties>
36+ <property name="checkIfElseStmt" value="false"/>
37+ <property name="checkSingleIfStmt" value="false"/>
38+ </properties>
39+ </rule>
40+
41+ <rule ref="category/java/design.xml" >
42+ <exclude name="AvoidThrowingNullPointerException" />
43+ <exclude name="AvoidUncheckedExceptionsInSignatures" />
44+ <exclude name="LawOfDemeter" />
45+ <exclude name="LoosePackageCoupling" />
46+ <exclude name="SimplifyBooleanReturns" />
47+ </rule>
48+
49+ <rule ref="category/java/documentation.xml" />
50+ <rule ref="category/java/documentation.xml/CommentRequired" >
51+ <properties>
52+ <property name="fieldCommentRequirement" value="Ignored"/>
53+ </properties>
54+ </rule>
55+ <rule ref="category/java/documentation.xml/CommentSize" >
56+ <properties>
57+ <property name="maxLines" value="25"/>
58+ </properties>
59+ </rule>
60+
61+ <rule ref="category/java/errorprone.xml" >
62+ <exclude name="AvoidLiteralsInIfCondition" />
63+ <exclude name="BeanMembersShouldSerialize" />
64+ <exclude name="DataflowAnomalyAnalysis" />
65+ </rule>
66+
67+ <rule ref="category/java/multithreading.xml" />
68+
69+ <rule ref="category/java/performance.xml" >
70+ <exclude name="ConsecutiveAppendsShouldReuse" />
71+ <exclude name="RedundantFieldInitializer" />
72+ </rule>
73+
74+ <rule ref="category/java/security.xml" />
75+
76+ <!--rule ref="category/pom/errorprone.xml" /-->
77+
78+ <!--rule ref="category/xml/errorprone.xml" /-->
79+
80+</ruleset>
81+
82+<!-- EOF -->
--- a/fixcrlf.xml
+++ /dev/null
@@ -1,65 +0,0 @@
1-<?xml version="1.0" encoding="UTF-8" ?>
2-
3-<!-- ====================================================================== -->
4-<!-- Ant build file (http://ant.apache.org/) for Ant 1.8.0 or later. -->
5-<!-- ====================================================================== -->
6-
7-<project basedir=".">
8-<description>
9-CAUTION : This is not build-file for project-building.
10-It's just adapting project-files for native environment.
11-</description>
12-
13-<!-- ====================================================================== -->
14-<!-- sanitize files for native environment -->
15-<!-- ====================================================================== -->
16-
17- <target description="sanitize files" name="sanitize" >
18- <echo message="sanitize files..." />
19-
20- <fixcrlf
21- srcDir="." includes="*.txt"
22- encoding="UTF-8" outputencoding="UTF-8"
23- tablength="8" tab="remove"
24- eof="remove"
25- />
26-
27- <fixcrlf
28- srcDir="./src/" includes="**/*.java"
29- encoding="UTF-8" outputencoding="UTF-8"
30- tablength="4" tab="remove" javafiles="true"
31- eof="remove"
32- />
33-
34- <fixcrlf
35- srcDir="./src/" includes="**/*.properties"
36- encoding="ISO-8859-1" outputencoding="ISO-8859-1"
37- eol="lf"
38- eof="remove"
39- />
40-
41- <fixcrlf
42- srcDir="./src/" includes="**/*.xml,**/*.xsd,**/*.dtd"
43- encoding="UTF-8" outputencoding="UTF-8"
44- tablength="8" tab="remove"
45- eol="lf"
46- eof="remove"
47- />
48-
49- <fixcrlf
50- srcDir="./src/" includes="**/*.html,**/*.htm,**/*.css"
51- encoding="UTF-8" outputencoding="UTF-8"
52- tablength="8" tab="remove"
53- eol="lf"
54- eof="remove"
55- />
56-
57- <chmod type="file" perm="a-x">
58- <fileset dir="." includes="**/*" excludes="**/*.sh" />
59- </chmod>
60-
61- </target>
62-
63-</project>
64-
65-<!-- EOF -->
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
88 xmlns="http://maven.apache.org/POM/4.0.0"
99 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
11- http://maven.apache.org/maven-v4_0_0.xsd"
11+ http://maven.apache.org/xsd/maven-4.0.0.xsd"
1212 >
1313 <modelVersion>4.0.0</modelVersion>
1414 <!--parent/-->
@@ -30,13 +30,13 @@
3030
3131 <organization>
3232 <name>Jovsonz Partners</name>
33- <url>https://osdn.jp/projects/jovsonz/</url>
33+ <url>https://osdn.net/projects/jovsonz/</url>
3434 </organization>
3535
3636 <licenses>
3737 <license>
3838 <name>The MIT License</name>
39- <url>https://opensource.org/licenses/mit-license.php</url>
39+ <url>https://opensource.org/licenses/MIT</url>
4040 <distribution>manual</distribution>
4141 </license>
4242 </licenses>
@@ -46,7 +46,7 @@
4646 <id>olyutorskii</id>
4747 <url>https://sites.google.com/site/olyutorskiipit/</url>
4848 <organization>Jovsonz Partners</organization>
49- <organizationUrl>https://osdn.jp/projects/jovsonz/</organizationUrl>
49+ <organizationUrl>https://osdn.net/projects/jovsonz/</organizationUrl>
5050 <roles>
5151 <role>Project Founder</role>
5252 <role>Java Developer</role>
@@ -57,43 +57,63 @@
5757 <contributors/>
5858 <mailingLists/>
5959
60- <prerequisites>
61- <maven>3.0.1</maven>
62- </prerequisites>
60+ <!-- prerequisites/ -->
6361
6462 <modules/>
6563
6664 <scm>
67- <connection>scm:hg:http://hg.osdn.jp/view/jovsonz/Jovsonz</connection>
68- <developerConnection>scm:hg:ssh://hg.osdn.jp//hgroot/jovsonz/Jovsonz</developerConnection>
69- <url>https://osdn.jp/projects/jovsonz/scm/hg/Jovsonz/</url>
65+ <connection>scm:git:git://git.osdn.net/gitroot/jovsonz/Jovsonz.git</connection>
66+ <developerConnection>scm:git:https://scm.osdn.net/gitroot/jovsonz/Jovsonz.git</developerConnection>
67+ <url>https://osdn.net/projects/jovsonz/scm/git/Jovsonz/</url>
7068 </scm>
7169
7270 <issueManagement>
73- <system>OSDN.JP</system>
74- <url>https://osdn.jp/projects/jovsonz/ticket/</url>
71+ <system>OSDN.net</system>
72+ <url>https://osdn.net/projects/jovsonz/ticket/</url>
7573 </issueManagement>
7674
7775 <ciManagement/>
7876 <distributionManagement/>
7977
8078 <properties>
81- <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
82-
83- <maven.compiler.source>1.7</maven.compiler.source>
84- <maven.compiler.target>1.7</maven.compiler.target>
79+ <maven.compiler.source>1.8</maven.compiler.source>
80+ <maven.compiler.target>1.8</maven.compiler.target>
8581
8682 <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
8783 <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
8884
85+ <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
8986 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
9087 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
9188
9289 <project.mainconf>${project.basedir}/src/main/config</project.mainconf>
9390
94- <checkstyle.config.location>${project.mainconf}/checks.xml</checkstyle.config.location>
91+ <locale>en</locale>
92+ <site.locales>${locale}</site.locales>
93+ <javadoc.locale>${locale}</javadoc.locale>
94+ <spotbugs.jvmArgs>-Duser.language=${locale}</spotbugs.jvmArgs>
95+
96+ <!-- Walk around: JDK 11 javadoc + Maven -->
97+ <detectJavaApiLink>false</detectJavaApiLink>
98+
99+ <surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
100+ <jacoco-plugin.version>0.8.3</jacoco-plugin.version>
101+
102+ <checkstyle-plugin.version>3.0.0</checkstyle-plugin.version>
103+ <checkstyleruntime.version>8.18</checkstyleruntime.version>
104+ <checkstyle.config.location>${project.basedir}/config/checkstyle/checkstyle.xml</checkstyle.config.location>
105+ <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
95106 <checkstyle.enable.rss>false</checkstyle.enable.rss>
96107
108+ <pmd-plugin.version>3.12.0</pmd-plugin.version>
109+ <pmd.analysisCache>true</pmd.analysisCache>
110+
111+ <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
112+ <spotbugs.effort>Max</spotbugs.effort>
113+ <spotbugs.threshold>Low</spotbugs.threshold>
114+ <!-- for Jenkins -->
115+ <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
116+
97117 </properties>
98118
99119 <dependencyManagement/>
@@ -113,98 +133,177 @@
113133 <pluginRepositories/>
114134
115135 <build>
116- <pluginManagement/>
136+
137+ <pluginManagement>
138+
139+ <plugins>
140+
141+ <plugin>
142+ <groupId>org.apache.maven.plugins</groupId>
143+ <artifactId>maven-checkstyle-plugin</artifactId>
144+ <version>${checkstyle-plugin.version}</version>
145+ <dependencies>
146+ <dependency>
147+ <groupId>com.puppycrawl.tools</groupId>
148+ <artifactId>checkstyle</artifactId>
149+ <version>${checkstyleruntime.version}</version>
150+ </dependency>
151+ </dependencies>
152+ </plugin>
153+
154+ </plugins>
155+
156+ </pluginManagement>
117157
118158 <plugins>
119159
120- <plugin>
121- <groupId>org.apache.maven.plugins</groupId>
122- <artifactId>maven-enforcer-plugin</artifactId>
123- <version>1.4.1</version>
124- <configuration>
125- <rules>
126- <requireMavenVersion>
127- <version>[3.0.1,)</version>
128- </requireMavenVersion>
129- <requireJavaVersion>
130- <version>[1.7,)</version>
131- </requireJavaVersion>
132- </rules>
133- </configuration>
134- </plugin>
135160
136- <plugin>
137- <groupId>org.apache.maven.plugins</groupId>
138- <artifactId>maven-install-plugin</artifactId>
139- <version>2.5.2</version>
140- </plugin>
161+ <!-- clean lifecycle -->
141162
142163 <plugin>
143164 <groupId>org.apache.maven.plugins</groupId>
144165 <artifactId>maven-clean-plugin</artifactId>
145- <version>3.0.0</version>
166+ <version>3.1.0</version>
146167 <configuration>
147168 <filesets>
148169 <fileset>
149170 <directory>${project.basedir}</directory>
150171 <includes>
151- <include>**/.DS_Store</include>
152- <include>**/_MACOSX</include>
172+ <include>**/*~</include>
173+ <include>**/*.swp</include>
174+ <include>**/*.DS_Store</include>
175+ <include>**/._*</include>
176+ <include>**/__MACOSX</include>
153177 <include>**/Thumbs.db</include>
154- <include>**/thumbs.db</include>
155- <include>**/Desktop.ini</include>
156178 <include>**/desktop.ini</include>
157179 <include>**/core</include>
180+ <include>**/hs_err_pid*</include>
158181 </includes>
159182 </fileset>
160183 </filesets>
161184 </configuration>
162185 </plugin>
163186
187+
188+ <!-- default lifecycle -->
189+
190+ <plugin>
191+ <groupId>org.apache.maven.plugins</groupId>
192+ <artifactId>maven-enforcer-plugin</artifactId>
193+ <version>3.0.0-M2</version>
194+ <executions>
195+ <execution>
196+ <id>enforce-versions</id>
197+ <goals>
198+ <goal>enforce</goal>
199+ </goals>
200+ <configuration>
201+ <rules>
202+ <requireMavenVersion>
203+ <version>[3.3.9,)</version>
204+ </requireMavenVersion>
205+ <requireJavaVersion>
206+ <version>[1.8,)</version>
207+ </requireJavaVersion>
208+ </rules>
209+ </configuration>
210+ </execution>
211+ </executions>
212+ </plugin>
213+
214+ <plugin>
215+ <groupId>org.apache.maven.plugins</groupId>
216+ <artifactId>maven-resources-plugin</artifactId>
217+ <version>3.1.0</version>
218+ </plugin>
219+
164220 <plugin>
165221 <groupId>org.apache.maven.plugins</groupId>
166222 <artifactId>maven-compiler-plugin</artifactId>
167- <version>3.5.1</version>
223+ <version>3.8.0</version>
168224 <configuration>
169- <source>1.7</source> <!-- for NetBeans IDE -->
170- <target>1.7</target>
171- <showDeprecation>true</showDeprecation>
172- <showWarnings>true</showWarnings>
225+ <source>1.8</source> <!-- for NetBeans IDE -->
226+ <target>1.8</target>
173227 <compilerArguments>
174228 <Xlint/>
175229 </compilerArguments>
230+ <showWarnings>true</showWarnings>
231+ <showDeprecation>true</showDeprecation>
176232 </configuration>
177233 </plugin>
178234
179235 <plugin>
180236 <groupId>org.apache.maven.plugins</groupId>
181- <artifactId>maven-jar-plugin</artifactId>
182- <version>3.0.0</version>
237+ <artifactId>maven-surefire-plugin</artifactId>
238+ <version>${surefire-plugin.version}</version>
183239 <configuration>
184- <archive>
185- <manifestEntries>
186- <Built-By>${project.organization.name}</Built-By>
187- </manifestEntries>
188- </archive>
240+ <enableAssertions>true</enableAssertions>
189241 </configuration>
190242 </plugin>
191243
192244 <plugin>
245+ <groupId>org.jacoco</groupId>
246+ <artifactId>jacoco-maven-plugin</artifactId>
247+ <version>${jacoco-plugin.version}</version>
248+ <executions>
249+ <execution>
250+ <id>default-prepare-agent</id>
251+ <goals>
252+ <goal>prepare-agent</goal>
253+ </goals>
254+ </execution>
255+ <execution>
256+ <id>default-report</id>
257+ <phase>prepare-package</phase>
258+ <goals>
259+ <goal>report</goal>
260+ </goals>
261+ </execution>
262+ <execution>
263+ <id>default-check</id>
264+ <goals>
265+ <goal>check</goal>
266+ </goals>
267+ <configuration>
268+ <rules>
269+ <rule implementation="org.jacoco.maven.RuleConfiguration">
270+ <element>BUNDLE</element>
271+ <limits>
272+ <limit implementation="org.jacoco.report.check.Limit">
273+ <counter>COMPLEXITY</counter>
274+ <value>COVEREDRATIO</value>
275+ <minimum>0.0</minimum>
276+ </limit>
277+ </limits>
278+ </rule>
279+ </rules>
280+ </configuration>
281+ </execution>
282+ </executions>
283+ </plugin>
284+
285+ <plugin>
193286 <groupId>org.apache.maven.plugins</groupId>
194- <artifactId>maven-assembly-plugin</artifactId>
195- <version>2.6</version>
287+ <artifactId>maven-jar-plugin</artifactId>
288+ <version>3.1.1</version>
196289 <configuration>
197- <archiveBaseDirectory>.</archiveBaseDirectory>
198- <descriptors>
199- <descriptor>src/main/assembly/descriptor.xml</descriptor>
200- </descriptors>
290+ <archive>
291+ <manifest>
292+ <addDefaultImplementationEntries>
293+ true
294+ </addDefaultImplementationEntries>
295+ </manifest>
296+ <manifestEntries>
297+ <Built-By>${project.organization.name}</Built-By>
298+ </manifestEntries>
299+ </archive>
201300 </configuration>
202301 </plugin>
203302
204303 <plugin>
205304 <groupId>org.apache.maven.plugins</groupId>
206305 <artifactId>maven-source-plugin</artifactId>
207- <version>3.0.0</version>
306+ <version>3.0.1</version>
208307 <configuration>
209308 <includePom>true</includePom>
210309 <archive>
@@ -226,76 +325,63 @@
226325
227326 <plugin>
228327 <groupId>org.apache.maven.plugins</groupId>
229- <artifactId>maven-resources-plugin</artifactId>
230- <version>3.0.0</version>
328+ <artifactId>maven-install-plugin</artifactId>
329+ <version>3.0.0-M1</version>
231330 </plugin>
232331
233332 <plugin>
234333 <groupId>org.apache.maven.plugins</groupId>
235- <artifactId>maven-surefire-plugin</artifactId>
236- <version>2.19.1</version>
334+ <artifactId>maven-deploy-plugin</artifactId>
335+ <version>3.0.0-M1</version>
336+ </plugin>
337+
338+
339+ <!-- site lifecycle -->
340+
341+ <plugin>
342+ <groupId>org.apache.maven.plugins</groupId>
343+ <artifactId>maven-site-plugin</artifactId>
344+ <version>3.7.1</version>
237345 <configuration>
238- <skipTests>false</skipTests>
239- <enableAssertions>true</enableAssertions>
346+ <locales>${site.locales}</locales>
240347 </configuration>
241348 </plugin>
242349
350+
351+ <!-- goals without lifecycle -->
352+
243353 <plugin>
244354 <groupId>org.apache.maven.plugins</groupId>
245- <artifactId>maven-site-plugin</artifactId>
246- <version>3.5.1</version>
355+ <artifactId>maven-assembly-plugin</artifactId>
356+ <version>3.1.1</version>
247357 <configuration>
248- <generateReports>true</generateReports>
249- <locales>ja</locales>
250- <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
251- <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
358+ <descriptors>
359+ <descriptor>src/assembly/src.xml</descriptor>
360+ </descriptors>
252361 </configuration>
253362 </plugin>
254363
255364 <plugin>
256365 <groupId>org.apache.maven.plugins</groupId>
257366 <artifactId>maven-checkstyle-plugin</artifactId>
258- <version>2.15</version>
259- <!-- config from property value -->
367+ <version>${checkstyle-plugin.version}</version>
260368 </plugin>
261369
262370 <plugin>
263371 <groupId>org.apache.maven.plugins</groupId>
264372 <artifactId>maven-pmd-plugin</artifactId>
265- <version>3.6</version>
373+ <version>${pmd-plugin.version}</version>
266374 <configuration>
267- <targetJdk>${maven.compiler.target}</targetJdk>
268375 <rulesets>
269- <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
376+ <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
270377 </rulesets>
271378 </configuration>
272379 </plugin>
273380
274381 <plugin>
275- <groupId>org.codehaus.mojo</groupId>
276- <artifactId>findbugs-maven-plugin</artifactId>
277- <version>3.0.3</version>
278- <configuration>
279- <effort>Max</effort>
280- <threshold>Low</threshold>
281- <!-- for Jenkins -->
282- <findbugsXmlOutput>true</findbugsXmlOutput>
283- <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
284- <xmlOutput>true</xmlOutput>
285- </configuration>
286- </plugin>
287-
288- <plugin>
289- <groupId>org.codehaus.mojo</groupId>
290- <artifactId>cobertura-maven-plugin</artifactId>
291- <version>2.7</version>
292- <configuration>
293- <encoding>${project.build.sourceEncoding}</encoding>
294- <formats>
295- <format>html</format>
296- <format>xml</format> <!-- for Jenkins -->
297- </formats>
298- </configuration>
382+ <groupId>com.github.spotbugs</groupId>
383+ <artifactId>spotbugs-maven-plugin</artifactId>
384+ <version>${spotbugs-plugin.version}</version>
299385 </plugin>
300386
301387 </plugins>
@@ -334,7 +420,7 @@
334420 <exclude>**/version.properties</exclude>
335421
336422 <exclude>**/.DS_Store</exclude>
337- <exclude>**/_MACOSX</exclude>
423+ <exclude>**/__MACOSX</exclude>
338424 <exclude>**/Thumbs.db</exclude>
339425 <exclude>**/thumbs.db</exclude>
340426 <exclude>**/Desktop.ini</exclude>
@@ -354,7 +440,7 @@
354440 <plugin>
355441 <groupId>org.apache.maven.plugins</groupId>
356442 <artifactId>maven-project-info-reports-plugin</artifactId>
357- <version>2.9</version>
443+ <version>3.0.0</version>
358444 <configuration>
359445 <linkOnly>true</linkOnly>
360446 <offline>true</offline>
@@ -364,20 +450,21 @@
364450 <reports>
365451 <report>index</report>
366452 <report>summary</report>
367- <report>license</report>
453+ <report>licenses</report>
454+ <report>dependency-info</report>
368455 <report>dependencies</report>
456+ <report>dependency-convergence</report>
369457 <report>plugins</report>
458+ <report>plugin-management</report>
459+ <report>team</report>
460+ <report>issue-management</report>
370461 <report>scm</report>
371- <report>project-team</report>
372462 <!--
373- <report>dependency-convergence</report>
374- <report>dependency-info</report>
375463 <report>dependency-management</report>
376464 <report>distribution-management</report>
377- <report>issue-tracking</report>
378- <report>mailing-list</report>
465+ <report>ci-management</report>
466+ <report>mailing-lists</report>
379467 <report>modules</report>
380- <report>plugin-management</report>
381468 -->
382469 </reports>
383470 </reportSet>
@@ -387,12 +474,17 @@
387474 <plugin>
388475 <groupId>org.apache.maven.plugins</groupId>
389476 <artifactId>maven-javadoc-plugin</artifactId>
390- <version>2.10.3</version>
477+ <version>3.1.0</version>
391478 <configuration>
392- <skip>false</skip>
479+ <author>false</author>
393480 <notimestamp>true</notimestamp>
394481 <quiet>true</quiet>
395482 <show>protected</show>
483+ <header>${project.name} ${project.version} API</header>
484+ <version>true</version>
485+ <locale>${javadoc.locale}</locale>
486+ <!-- for JDK11 javadoc -->
487+ <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
396488 </configuration>
397489 <reportSets>
398490 <reportSet>
@@ -406,49 +498,32 @@
406498 <plugin>
407499 <groupId>org.apache.maven.plugins</groupId>
408500 <artifactId>maven-jxr-plugin</artifactId>
409- <version>2.5</version>
410- <configuration>
411- <skip>false</skip>
412- </configuration>
501+ <version>3.0.0</version>
413502 </plugin>
414503
415504 <plugin>
416505 <groupId>org.apache.maven.plugins</groupId>
417506 <artifactId>maven-surefire-report-plugin</artifactId>
418- <version>2.19.1</version>
419- <configuration>
420- <showSuccess>false</showSuccess>
421- </configuration>
507+ <version>${surefire-plugin.version}</version>
508+ </plugin>
509+
510+ <plugin>
511+ <groupId>org.jacoco</groupId>
512+ <artifactId>jacoco-maven-plugin</artifactId>
513+ <version>${jacoco-plugin.version}</version>
422514 <reportSets>
423515 <reportSet>
424516 <reports>
425- <report>report-only</report>
517+ <report>report</report>
426518 </reports>
427519 </reportSet>
428520 </reportSets>
429521 </plugin>
430522
431523 <plugin>
432- <groupId>org.codehaus.mojo</groupId>
433- <artifactId>cobertura-maven-plugin</artifactId>
434- <version>2.7</version>
435- <configuration>
436- <encoding>${project.build.sourceEncoding}</encoding>
437- <formats>
438- <format>html</format>
439- <format>xml</format> <!-- for Jenkins -->
440- </formats>
441- </configuration>
442- </plugin>
443-
444- <plugin>
445524 <groupId>org.apache.maven.plugins</groupId>
446525 <artifactId>maven-checkstyle-plugin</artifactId>
447- <version>2.15</version>
448- <configuration>
449- <skip>false</skip>
450- <!-- config from property value -->
451- </configuration>
526+ <version>${checkstyle-plugin.version}</version>
452527 <reportSets>
453528 <reportSet>
454529 <reports>
@@ -461,12 +536,10 @@
461536 <plugin>
462537 <groupId>org.apache.maven.plugins</groupId>
463538 <artifactId>maven-pmd-plugin</artifactId>
464- <version>3.6</version>
539+ <version>${pmd-plugin.version}</version>
465540 <configuration>
466- <skip>false</skip>
467- <targetJdk>${maven.compiler.target}</targetJdk>
468541 <rulesets>
469- <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
542+ <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
470543 </rulesets>
471544 </configuration>
472545 <reportSets>
@@ -480,31 +553,9 @@
480553 </plugin>
481554
482555 <plugin>
483- <groupId>org.codehaus.mojo</groupId>
484- <artifactId>findbugs-maven-plugin</artifactId>
485- <version>3.0.3</version>
486- <configuration>
487- <skip>false</skip>
488- <effort>Max</effort>
489- <threshold>Low</threshold>
490- <!-- for Jenkins -->
491- <findbugsXmlOutput>true</findbugsXmlOutput>
492- <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
493- <xmlOutput>true</xmlOutput>
494- <!-- excludeFilterFile/ -->
495- </configuration>
496- </plugin>
497-
498- <plugin>
499- <groupId>org.codehaus.mojo</groupId>
500- <artifactId>javancss-maven-plugin</artifactId>
501- <version>2.1</version>
502- </plugin>
503-
504- <plugin>
505- <groupId>org.codehaus.mojo</groupId>
506- <artifactId>jdepend-maven-plugin</artifactId>
507- <version>2.0</version>
556+ <groupId>com.github.spotbugs</groupId>
557+ <artifactId>spotbugs-maven-plugin</artifactId>
558+ <version>${spotbugs-plugin.version}</version>
508559 </plugin>
509560
510561 </plugins>
--- a/src/main/assembly/descriptor.xml
+++ b/src/assembly/src.xml
@@ -1,15 +1,15 @@
11 <?xml version="1.0" encoding="UTF-8" ?>
22
33 <assembly
4- xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
4+ xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
55 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6- xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3
7- http://maven.apache.org/xsd/assembly-1.1.3.xsd"
6+ xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0
7+ http://maven.apache.org/xsd/assembly-2.0.0.xsd"
88 >
99
1010 <!--
11- OSDN.JP用リリースファイル構成定義ファイル
12- Maven2(or3) assembly用
11+ OSDN.net用リリースファイル構成定義ファイル
12+ Maven3 assembly用
1313 -->
1414
1515 <id>src</id>
@@ -20,11 +20,11 @@
2020
2121 <fileSets>
2222 <fileSet>
23- <directory>.</directory>
23+ <directory>${project.basedir}</directory>
2424 <includes>
25- <include>pom.xml</include>
26- <include>fixcrlf.xml</include>
25+ <include>*.xml</include>
2726 <include>*.txt</include>
27+ <include>*.md</include>
2828 </includes>
2929 <excludes>
3030 <exclude>nb-configuration.xml</exclude>
@@ -33,7 +33,11 @@
3333 <useDefaultExcludes>true</useDefaultExcludes>
3434 </fileSet>
3535 <fileSet>
36- <directory>src/</directory>
36+ <directory>${project.basedir}/src</directory>
37+ <useDefaultExcludes>true</useDefaultExcludes>
38+ </fileSet>
39+ <fileSet>
40+ <directory>${project.basedir}/config</directory>
3741 <useDefaultExcludes>true</useDefaultExcludes>
3842 </fileSet>
3943 </fileSets>
--- a/src/main/config/pmdrules.xml
+++ /dev/null
@@ -1,142 +0,0 @@
1-<?xml version="1.0" encoding="UTF-8" ?>
2-
3-<!--
4- PMD用ルールセット定義
5-
6- PMD [ https://pmd.github.io/ ] 5.3 以降用に記述されています。
7-
8- Copyright(c) 2016 olyutorskii
9--->
10-
11-<ruleset
12- xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
13- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14- xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0
15- http://pmd.sourceforge.net/ruleset_2_0_0.xsd"
16- name="Custom ruleset"
17->
18-
19- <description>
20- custom rulesets for project
21- </description>
22-
23-<!--
24- <rule ref="rulesets/java/android.xml" />
25--->
26-
27- <rule ref="rulesets/java/basic.xml" />
28-
29- <rule ref="rulesets/java/braces.xml">
30- <exclude name="IfElseStmtsMustUseBraces" />
31- <exclude name="IfStmtsMustUseBraces" />
32- </rule>
33-
34- <rule ref="rulesets/java/clone.xml" />
35-
36- <rule ref="rulesets/java/codesize.xml">
37- <exclude name="TooManyMethods" />
38- </rule>
39- <rule ref="rulesets/java/codesize.xml/TooManyMethods">
40- <properties>
41- <property name="maxmethods" value="25"/>
42- </properties>
43- </rule>
44-
45- <rule ref="rulesets/java/comments.xml">
46- <exclude name="CommentRequired" />
47- <exclude name="CommentSize" />
48- </rule>
49- <rule ref="rulesets/java/comments.xml/CommentRequired" >
50- <properties>
51- <property name="fieldCommentRequirement" value="Ignored"/>
52- </properties>
53- </rule>
54- <rule ref="rulesets/java/comments.xml/CommentSize" >
55- <properties>
56- <property name="maxLines" value="25"/>
57- </properties>
58- </rule>
59-
60- <rule ref="rulesets/java/controversial.xml">
61- <exclude name="NullAssignment" />
62- <exclude name="OnlyOneReturn" />
63- <exclude name="DefaultPackage" />
64- <exclude name="DataflowAnomalyAnalysis" />
65- <exclude name="AvoidUsingShortType" />
66- <exclude name="AvoidLiteralsInIfCondition" />
67- <exclude name="UseConcurrentHashMap" />
68- </rule>
69-
70- <rule ref="rulesets/java/coupling.xml">
71- <exclude name="LoosePackageCoupling" />
72- <exclude name="LawOfDemeter" />
73- </rule>
74-
75- <rule ref="rulesets/java/design.xml">
76- <exclude name="SimplifyBooleanReturns" />
77- <exclude name="ConfusingTernary" />
78- <exclude name="UnnecessaryLocalBeforeReturn" />
79- <exclude name="FieldDeclarationsShouldBeAtStartOfClass" />
80- </rule>
81-
82- <rule ref="rulesets/java/empty.xml" />
83-
84- <rule ref="rulesets/java/finalizers.xml" />
85-
86- <rule ref="rulesets/java/imports.xml" />
87-
88-<!--
89- <rule ref="rulesets/java/j2ee.xml" />
90- <rule ref="rulesets/java/javabeans.xml" />
91--->
92-
93- <rule ref="rulesets/java/junit.xml" />
94-
95-<!--
96- <rule ref="rulesets/java/logging-jakarta-commons.xml" />
97--->
98-
99- <rule ref="rulesets/java/logging-java.xml" />
100-
101- <rule ref="rulesets/java/migrating.xml" />
102-<!--
103- <rule ref="rulesets/java/migrating_to_XX.xml" />
104--->
105-
106- <rule ref="rulesets/java/naming.xml">
107- <exclude name="ShortVariable" />
108- <exclude name="LongVariable" />
109- <exclude name="AvoidFieldNameMatchingMethodName" />
110- </rule>
111- <rule ref="rulesets/java/naming.xml/LongVariable">
112- <properties>
113- <property name="minimum" value="25"/>
114- </properties>
115- </rule>
116-
117- <rule ref="rulesets/java/optimizations.xml">
118- <exclude name="LocalVariableCouldBeFinal" />
119- <exclude name="MethodArgumentCouldBeFinal" />
120- <exclude name="RedundantFieldInitializer" />
121- </rule>
122-
123- <rule ref="rulesets/java/strictexception.xml">
124- <exclude name="AvoidThrowingNullPointerException" />
125- </rule>
126-
127- <rule ref="rulesets/java/strings.xml" />
128-
129- <rule ref="rulesets/java/sunsecure.xml" />
130-
131- <rule ref="rulesets/java/typeresolution.xml" />
132-
133- <rule ref="rulesets/java/unnecessary.xml">
134- <exclude name="UnnecessaryReturn" />
135- <exclude name="UselessParentheses" />
136- </rule>
137-
138- <rule ref="rulesets/java/unusedcode.xml" />
139-
140-</ruleset>
141-
142-<!-- EOF -->
Show on old repository browser