Skip to content

Commit ea71fc3

Browse files
Bump org.apache.logging:logging-parent from 12.0.0 to 12.1.0 in /log4j-parent (#3594)
* Bump org.apache.logging:logging-parent in /log4j-parent Bumps [org.apache.logging:logging-parent](https://github.com/apache/logging-parent) from 12.0.0 to 12.1.0. - [Release notes](https://github.com/apache/logging-parent/releases) - [Commits](apache/logging-parent@rel/12.0.0...rel/12.1.0) --- updated-dependencies: - dependency-name: org.apache.logging:logging-parent dependency-version: 12.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Reformat after `palantir-java-format` upgrade * Upgrade workflows to `logging-parent` version `12.1.0` * Remove Error Prone override * Suppress Error Prone warning --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Piotr P. Karwasz <[email protected]>
1 parent afa773a commit ea71fc3

File tree

15 files changed

+35
-47
lines changed

15 files changed

+35
-47
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
build:
3232
if: github.actor != 'dependabot[bot]'
33-
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/12.0.0
33+
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/12.1.0
3434
secrets:
3535
DV_ACCESS_TOKEN: ${{ startsWith(github.ref_name, 'release/') && '' || secrets.DEVELOCITY_ACCESS_KEY }}
3636
with:
@@ -44,7 +44,7 @@ jobs:
4444
deploy-snapshot:
4545
needs: build
4646
if: github.repository == 'apache/logging-log4j2' && github.ref_name == '2.x'
47-
uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/12.0.0
47+
uses: apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/12.1.0
4848
# Secrets for deployments
4949
secrets:
5050
NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
@@ -57,7 +57,7 @@ jobs:
5757
deploy-release:
5858
needs: build
5959
if: github.repository == 'apache/logging-log4j2' && startsWith(github.ref_name, 'release/')
60-
uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/12.0.0
60+
uses: apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/12.1.0
6161
# Secrets for deployments
6262
secrets:
6363
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
@@ -78,7 +78,7 @@ jobs:
7878
needs: [ deploy-snapshot, deploy-release ]
7979
if: ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
8080
name: "verify-reproducibility (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
81-
uses: apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@rel/12.0.0
81+
uses: apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@rel/12.1.0
8282
with:
8383
nexus-url: ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || 'https://repository.apache.org/content/groups/snapshots' }}
8484
# Encode the `runs-on` input as JSON array

.github/workflows/codeql-analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ permissions: read-all
3030
jobs:
3131

3232
analyze:
33-
uses: apache/logging-parent/.github/workflows/codeql-analysis-reusable.yaml@rel/12.0.0
33+
uses: apache/logging-parent/.github/workflows/codeql-analysis-reusable.yaml@rel/12.1.0
3434
with:
3535
java-version: |
3636
8

.github/workflows/deploy-site.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
deploy-site-stg:
3535
if: github.repository == 'apache/logging-log4j2' && github.ref_name == '2.x'
36-
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.0.0
36+
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.1.0
3737
# Secrets for committing the generated site
3838
secrets:
3939
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
@@ -51,7 +51,7 @@ jobs:
5151

5252
deploy-site-pro:
5353
if: github.repository == 'apache/logging-log4j2' && github.ref_name == '2.x-site-pro'
54-
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.0.0
54+
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.1.0
5555
# Secrets for committing the generated site
5656
secrets:
5757
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
@@ -81,7 +81,7 @@ jobs:
8181
8282
deploy-site-rel:
8383
needs: export-version
84-
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.0.0
84+
uses: apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@rel/12.1.0
8585
# Secrets for committing the generated site
8686
secrets:
8787
GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}

.github/workflows/merge-dependabot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
build:
3232
if: github.repository == 'apache/logging-log4j2' && github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]'
33-
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/12.0.0
33+
uses: apache/logging-parent/.github/workflows/build-reusable.yaml@rel/12.1.0
3434
secrets:
3535
DV_ACCESS_TOKEN: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3636
with:
@@ -42,7 +42,7 @@ jobs:
4242

4343
merge-dependabot:
4444
needs: build
45-
uses: apache/logging-parent/.github/workflows/merge-dependabot-reusable.yaml@rel/12.0.0
45+
uses: apache/logging-parent/.github/workflows/merge-dependabot-reusable.yaml@rel/12.1.0
4646
with:
4747
java-version: 17
4848
permissions:

log4j-1.2-api/src/main/java/org/apache/log4j/helpers/PatternParser.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,12 @@ else if (dateFormatStr.equalsIgnoreCase(AbsoluteTimeDateFormat.DATE_AND_TIME_DAT
299299
// formattingInfo.dump();
300300
currentLiteral.setLength(0);
301301
break;
302-
/*
303-
* case 'u': if(i < patternLength) { char cNext = pattern.charAt(i); if(cNext >= '0' && cNext <= '9') { pc = new
304-
* UserFieldPatternConverter(formattingInfo, cNext - '0'); LogLog.debug("USER converter ["+cNext+"].");
305-
* formattingInfo.dump(); currentLiteral.setLength(0); i++; } else LogLog.error("Unexpected char"
306-
* +cNext+" at position "+i); } break;
307-
*/
302+
/*
303+
* case 'u': if(i < patternLength) { char cNext = pattern.charAt(i); if(cNext >= '0' && cNext <= '9') { pc = new
304+
* UserFieldPatternConverter(formattingInfo, cNext - '0'); LogLog.debug("USER converter ["+cNext+"].");
305+
* formattingInfo.dump(); currentLiteral.setLength(0); i++; } else LogLog.error("Unexpected char"
306+
* +cNext+" at position "+i); } break;
307+
*/
308308
case 'x':
309309
pc = new BasicPatternConverter(formattingInfo, NDC_CONVERTER);
310310
// LogLog.debug("NDC converter.");

log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ AsyncLoggerConfigDelegate getAsyncLoggerConfigDelegate() {
123123
}
124124

125125
@Override
126+
@SuppressWarnings("BoxedPrimitiveEquality")
126127
protected void log(final LogEvent event, final LoggerConfigPredicate predicate) {
127128
// See LOG4J2-2301
128129
if (predicate == LoggerConfigPredicate.ALL

log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/processor/GraalVmProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,17 @@ private void processPlugin(Element element) {
138138
ExecutableElement executableChild = (ExecutableElement) child;
139139
if (executableChild.getModifiers().contains(Modifier.PUBLIC)) {
140140
switch (executableChild.getSimpleName().toString()) {
141-
// 1. All public constructors.
141+
// 1. All public constructors.
142142
case "<init>":
143143
addMethod(typeElement, executableChild);
144144
break;
145-
// 2. Static `newInstance` method used in, e.g. `PatternConverter` classes.
145+
// 2. Static `newInstance` method used in, e.g. `PatternConverter` classes.
146146
case "newInstance":
147147
if (executableChild.getModifiers().contains(Modifier.STATIC)) {
148148
addMethod(typeElement, executableChild);
149149
}
150150
break;
151-
// 3. Other factory methods are annotated, so we don't deal with them here.
151+
// 3. Other factory methods are annotated, so we don't deal with them here.
152152
default:
153153
}
154154
}

log4j-core/src/main/java/org/apache/logging/log4j/core/filter/MutableThreadContextMapFilter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,16 +384,16 @@ public void run() {
384384
break;
385385
}
386386
switch (result.status) {
387-
// These results cause changes in the filter
388-
// We call the listeners
387+
// These results cause changes in the filter
388+
// We call the listeners
389389
case SUCCESS:
390390
case NOT_FOUND:
391391
case EMPTY:
392392
for (FilterConfigUpdateListener listener : listeners) {
393393
listener.onEvent();
394394
}
395395
break;
396-
// These results do no cause changes in the filter
396+
// These results do no cause changes in the filter
397397
case ERROR:
398398
case NOT_MODIFIED:
399399
break;

log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private ThreadContextMap createThreadContextMap() {
127127
case WEB_APP_CONTEXT_MAP:
128128
case WEB_APP_CLASS_NAME:
129129
return new DefaultThreadContextMap();
130-
// Old FQCN of the garbage-free context map
130+
// Old FQCN of the garbage-free context map
131131
case "org.apache.logging.log4j.spi.GarbageFreeSortedArrayThreadContextMap":
132132
case GARBAGE_FREE_CONTEXT_MAP:
133133
case GARBAGE_FREE_CLASS_NAME:

log4j-core/src/main/java/org/apache/logging/log4j/core/osgi/Activator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void stop(final BundleContext context) throws Exception {
123123
@Override
124124
public void bundleChanged(final BundleEvent event) {
125125
switch (event.getType()) {
126-
// FIXME: STARTING instead of STARTED?
126+
// FIXME: STARTING instead of STARTED?
127127
case BundleEvent.STARTED:
128128
scanBundleForPlugins(event.getBundle());
129129
break;

0 commit comments

Comments
 (0)