Skip to content

Commit 2724620

Browse files
authored
Merge branch 'apache:master' into master
2 parents 98e1d8f + 2a5fc1b commit 2724620

File tree

474 files changed

+5604
-6520
lines changed

Some content is hidden

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

474 files changed

+5604
-6520
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737

3838
- name: Checkout repository
3939
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # 3.1.0
40+
with:
41+
fetch-depth: 32
4042

4143
- name: Setup JDK 11
4244
uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc # 3.6.0
@@ -94,6 +96,8 @@ jobs:
9496

9597
- name: Checkout repository
9698
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # 3.1.0
99+
with:
100+
fetch-depth: 32
97101

98102
- name: Setup JDK 11
99103
uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc # 3.6.0

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545

4646
- name: Checkout repository
4747
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # 3.1.0
48+
with:
49+
fetch-depth: 32
4850

4951
# Initializes the CodeQL tools for scanning.
5052
- name: Initialize CodeQL

.github/workflows/log4j-kafka-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131

3232
- name: Checkout repository
3333
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # 3.1.0
34+
with:
35+
fetch-depth: 32
3436

3537
- name: Setup JDK 11
3638
uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc # 3.6.0

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Apache Log4j
2-
Copyright 1999-2019 Apache Software Foundation
2+
Copyright 1999-2023 Apache Software Foundation
33

44
This product includes software developed at
55
The Apache Software Foundation (http://www.apache.org/).

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020

2121
/**
2222
* Configures the package.
23-
*
23+
*
2424
* <p>
2525
* For file based configuration, see {@link PropertyConfigurator}. For XML based configuration, see
2626
* {@link org.apache.log4j.xml.DOMConfigurator DOMConfigurator}.
2727
* </p>
28-
*
28+
*
2929
* @since 0.8.1
3030
*/
3131
public class BasicConfigurator {

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
*/
1717
package org.apache.log4j;
1818

19+
import java.util.Collection;
20+
import java.util.Collections;
21+
import java.util.Enumeration;
22+
import java.util.Map;
23+
import java.util.ResourceBundle;
24+
import java.util.Vector;
25+
import java.util.concurrent.ConcurrentMap;
26+
import java.util.stream.Collectors;
27+
1928
import org.apache.log4j.bridge.AppenderAdapter;
2029
import org.apache.log4j.bridge.AppenderWrapper;
2130
import org.apache.log4j.bridge.LogEventWrapper;
@@ -35,17 +44,8 @@
3544
import org.apache.logging.log4j.message.SimpleMessage;
3645
import org.apache.logging.log4j.spi.ExtendedLogger;
3746
import org.apache.logging.log4j.spi.LoggerContext;
38-
import org.apache.logging.log4j.util.Strings;
3947
import org.apache.logging.log4j.util.StackLocatorUtil;
40-
41-
import java.util.Collection;
42-
import java.util.Collections;
43-
import java.util.Enumeration;
44-
import java.util.Map;
45-
import java.util.ResourceBundle;
46-
import java.util.Vector;
47-
import java.util.concurrent.ConcurrentMap;
48-
import java.util.stream.Collectors;
48+
import org.apache.logging.log4j.util.Strings;
4949

5050
/**
5151
* Implementation of the Category class for compatibility, despite it having been deprecated a long, long time ago.

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

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
/*
22
* Licensed to the Apache Software Foundation (ASF) under one or more
3-
* contributor license agreements. See the NOTICE file distributed with
3+
* contributor license agreements. See the NOTICE file distributed with
44
* this work for additional information regarding copyright ownership.
5-
* The ASF licenses this file to You under the Apache License, Version 2.0
5+
* The ASF licenses this file to You under the Apache license, Version 2.0
66
* (the "License"); you may not use this file except in compliance with
7-
* the License. You may obtain a copy of the License at
7+
* the License. You may obtain a copy of the License at
88
*
99
* http://www.apache.org/licenses/LICENSE-2.0
1010
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
* See the License for the specific language governing permissions and
15-
* limitations under the License.
14+
* See the license for the specific language governing permissions and
15+
* limitations under the license.
1616
*/
17-
18-
// WARNING This class MUST not have references to the Category or
19-
// WARNING RootCategory classes in its static initialization neither
20-
// WARNING directly nor indirectly.
21-
2217
package org.apache.log4j;
2318

19+
import java.util.Enumeration;
20+
import java.util.Hashtable;
21+
import java.util.Vector;
22+
import java.util.WeakHashMap;
23+
import java.util.concurrent.ConcurrentHashMap;
24+
import java.util.concurrent.ConcurrentMap;
25+
2426
import org.apache.log4j.helpers.LogLog;
2527
import org.apache.log4j.helpers.OptionConverter;
2628
import org.apache.log4j.legacy.core.ContextUtil;
@@ -37,13 +39,6 @@
3739
import org.apache.logging.log4j.spi.LoggerContext;
3840
import org.apache.logging.log4j.util.StackLocatorUtil;
3941

40-
import java.util.Enumeration;
41-
import java.util.Hashtable;
42-
import java.util.Vector;
43-
import java.util.WeakHashMap;
44-
import java.util.concurrent.ConcurrentHashMap;
45-
import java.util.concurrent.ConcurrentMap;
46-
4742
/**
4843
* This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy.
4944
*

0 commit comments

Comments
 (0)