Skip to content

Commit 8cfb552

Browse files
committedMar 8, 2019
Fix license headers (Followup #711)
Changeset was reviewed by @twall via preparation PR, commit 093e349
1 parent 6bb00e1 commit 8cfb552

File tree

108 files changed

+1918
-642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+1918
-642
lines changed
 

‎checkstyle.xml

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"https://checkstyle.org/dtds/configuration_1_3.dtd">
55

66
<module name="Checker">
7+
<module name="SuppressionFilter">
8+
<property name="file" value="checkstyle_suppressions.xml"/>
9+
</module>
710
<module name="FileTabCharacter"/>
811
<module name="RegexpSingleline">
912
<property name="format" value="\s+$"/>
@@ -16,4 +19,9 @@
1619
<module name="TreeWalker">
1720
<module name="Indentation"/>
1821
</module>
22+
<module name="RegexpHeader">
23+
<property name="id" value="header-check" />
24+
<property name="headerFile" value="checkstyle_header.txt"/>
25+
<property name="multiLines" value="2"/>
26+
</module>
1927
</module>

‎checkstyle_header.txt

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
^/\*( Copyright.*$|$)
2+
^ \*( Copyright.*$|$)
3+
^ \* The contents of this file is dual-licensed under 2$
4+
^ \* alternative Open Source/Free licenses: LGPL 2\.1 or later and$
5+
^ \* Apache License 2\.0\.( \(starting with JNA version 4\.0\.0\)\.$|$)
6+
^ \*$
7+
^ \* You can freely decide which license you want to apply to$
8+
^ \* the project\.$
9+
^ \*$
10+
^ \* You may obtain a copy of the LGPL License at:$
11+
^ \*$
12+
^ \* http://www\.gnu\.org/licenses/licenses\.html$
13+
^ \*$
14+
^ \* A copy is also included in the downloadable source code package$
15+
^ \* containing JNA, in file "LGPL2\.1"\.$
16+
^ \*$
17+
^ \* You may obtain a copy of the Apache License at:$
18+
^ \*$
19+
^ \* http://www\.apache\.org/licenses/$
20+
^ \*$
21+
^ \* A copy is also included in the downloadable source code package$
22+
^ \* containing JNA, in file "AL2\.0"\.$
23+
^ \*/$

0 commit comments

Comments
 (0)
Please sign in to comment.