Skip to content

Commit 2523a67

Browse files
committed
Prepare for formatting of all files
Sometimes Spotless will not detect that a header already exists, e.g. if it is after a package declaration.
1 parent 67bafa6 commit 2523a67

27 files changed

+62
-52
lines changed

log4j-1.2-api/src/main/java/org/apache/log4j/Hierarchy.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
import org.apache.logging.log4j.spi.LoggerContext;
4040
import org.apache.logging.log4j.util.StackLocatorUtil;
4141

42+
// WARNING This class MUST not have references to the Category or
43+
// WARNING RootCategory classes in its static initialization neither
44+
// WARNING directly nor indirectly.
4245
/**
4346
* This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy.
4447
*

log4j-1.2-api/src/test/resources/config-1.2/log4j-capitalization.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
21
<!--
32
Licensed to the Apache Software Foundation (ASF) under one or more
43
contributor license agreements. See the NOTICE file distributed with
@@ -15,6 +14,7 @@
1514
See the License for the specific language governing permissions and
1615
limitations under the License.
1716
-->
17+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
1818
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
1919
<appender name="ConsoleCapitalized" class="org.apache.log4j.ConsoleAppender">
2020
<param name="Encoding" value="ISO-8859-1" />
@@ -41,4 +41,4 @@
4141
<appender-ref ref="ConsoleCapitalized" />
4242
<appender-ref ref="ConsoleJavaStyle" />
4343
</root>
44-
</log4j:configuration>
44+
</log4j:configuration>

log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/DOMTest4.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" [
3-
<!ENTITY a1 SYSTEM 'DOMTest4_A1.xml'>
4-
<!ENTITY a2 SYSTEM 'DOMTest4_A2.xml'>
5-
]>
62
<!--
73
Licensed to the Apache Software Foundation (ASF) under one or more
84
contributor license agreements. See the NOTICE file distributed with
@@ -19,6 +15,10 @@
1915
See the License for the specific language governing permissions and
2016
limitations under the License.
2117
-->
18+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" [
19+
<!ENTITY a1 SYSTEM 'DOMTest4_A1.xml'>
20+
<!ENTITY a2 SYSTEM 'DOMTest4_A2.xml'>
21+
]>
2222
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
2323
&a1;
2424
&a2;

log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/DOMTest4_A1.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<appender name="A1" class="org.apache.log4j.FileAppender">
17+
<appender name="A1" class="org.apache.log4j.FileAppender">
1818

19-
<param name="File" value="output/temp.A1.4" />
20-
<param name="Append" value="false" />
19+
<param name="File" value="output/temp.A1.4" />
20+
<param name="Append" value="false" />
2121

22-
<layout class="org.apache.log4j.PatternLayout">
23-
<param name="ConversionPattern" value="%-5p %c{2} - %m%n"/>
24-
</layout>
25-
</appender>
22+
<layout class="org.apache.log4j.PatternLayout">
23+
<param name="ConversionPattern" value="%-5p %c{2} - %m%n"/>
24+
</layout>
25+
</appender>

log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/DOMTest4_A2.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<appender name="A2" class="org.apache.log4j.FileAppender">
18-
<param name="File" value="output/temp.A2.4" />
19-
<param name="Append" value="false" />
20-
<layout class="org.apache.log4j.TTCCLayout">
21-
<param name="DateFormat" value="ISO8601" />
22-
</layout>
23-
</appender>
17+
<appender name="A2" class="org.apache.log4j.FileAppender">
18+
<param name="File" value="output/temp.A2.4" />
19+
<param name="Append" value="false" />
20+
<layout class="org.apache.log4j.TTCCLayout">
21+
<param name="DateFormat" value="ISO8601" />
22+
</layout>
23+
</appender>

log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/categoryfactory1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
32
<!--
43
Licensed to the Apache Software Foundation (ASF) under one or more
54
contributor license agreements. See the NOTICE file distributed with
@@ -16,6 +15,7 @@
1615
See the License for the specific language governing permissions and
1716
limitations under the License.
1817
-->
18+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
1919
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
2020

2121
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
@@ -32,4 +32,4 @@
3232
<param name="additivity" value="false"/>
3333
</categoryFactory>
3434

35-
</log4j:configuration>
35+
</log4j:configuration>

log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/categoryfactory2.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
32
<!--
43
Licensed to the Apache Software Foundation (ASF) under one or more
54
contributor license agreements. See the NOTICE file distributed with
@@ -16,6 +15,7 @@
1615
See the License for the specific language governing permissions and
1716
limitations under the License.
1817
-->
18+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
1919
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
2020

2121
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
@@ -35,4 +35,4 @@
3535
<param name="additivity" value="false"/>
3636
</categoryFactory>
3737

38-
</log4j:configuration>
38+
</log4j:configuration>

log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/customLevel1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
32
<!--
43
Licensed to the Apache Software Foundation (ASF) under one or more
54
contributor license agreements. See the NOTICE file distributed with
@@ -17,6 +16,7 @@
1716
limitations under the License.
1817
-->
1918

19+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
2020
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
2121

2222
<appender name="TEMP" class="org.apache.log4j.FileAppender">
@@ -32,4 +32,4 @@
3232
<level value="TRACE" class="org.apache.log4j.xml.XLevel"/>
3333
<appender-ref ref="TEMP" />
3434
</root>
35-
</log4j:configuration>
35+
</log4j:configuration>

log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/customLevel2.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
32
<!--
43
Licensed to the Apache Software Foundation (ASF) under one or more
54
contributor license agreements. See the NOTICE file distributed with
@@ -16,6 +15,7 @@
1615
See the License for the specific language governing permissions and
1716
limitations under the License.
1817
-->
18+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
1919
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'
2020
debug="false">
2121

@@ -38,4 +38,4 @@
3838
<appender-ref ref="TEMP" />
3939
</root>
4040

41-
</log4j:configuration>
41+
</log4j:configuration>

log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/customLevel3.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
32
<!--
43
Licensed to the Apache Software Foundation (ASF) under one or more
54
contributor license agreements. See the NOTICE file distributed with
@@ -16,6 +15,7 @@
1615
See the License for the specific language governing permissions and
1716
limitations under the License.
1817
-->
18+
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
1919
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'
2020
debug="false">
2121

@@ -41,4 +41,4 @@
4141
<appender-ref ref="TEMP" />
4242
</root>
4343

44-
</log4j:configuration>
44+
</log4j:configuration>

0 commit comments

Comments
 (0)