[
https://issues.apache.org/jira/browse/WW-5512?focusedWorklogId=953805&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-953805
]
ASF GitHub Bot logged work on WW-5512:
--------------------------------------
Author: ASF GitHub Bot
Created on: 23/Jan/25 08:05
Start Date: 23/Jan/25 08:05
Worklog Time Spent: 10m
Work Description: sonarqubecloud[bot] commented on PR #1191:
URL: https://github.com/apache/struts/pull/1191#issuecomment-2609106978
## [](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1191)
**Quality Gate failed**
Failed conditions
 [8 Security
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1191&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [71.3% Coverage on New
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1191&metric=new_coverage&view=list)
(required ≥ 80%)
 [E Security Rating on New
Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1191)
(required ≥ A)
 [C Reliability Rating on New
Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1191)
(required ≥ A)
[See analysis details on SonarQube
Cloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1191)
##
 Catch issues before they fail your Quality Gate with our IDE extension
 [SonarQube for
IDE](https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=pull-request)
Issue Time Tracking
-------------------
Worklog Id: (was: 953805)
Time Spent: 2h (was: 1h 50m)
> Support injecting empty optional parameters into constructors
> -------------------------------------------------------------
>
> Key: WW-5512
> URL: https://issues.apache.org/jira/browse/WW-5512
> Project: Struts 2
> Issue Type: Improvement
> Components: Core
> Reporter: Lukasz Lenart
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 6.7.1, 7.0.1
>
> Time Spent: 2h
> Remaining Estimate: 0h
>
> Currently such declaration won't work:
> {code:java}
> public class StrutsBean {
> private final String devMode;
> @Inject(value = StrutsConstants.STRUTS_DEV_MODE, required = false)
> public StrutsCspNonceReader(String devMode) {
> this.devMode = devMode
> }
> }
> {code}
> as it will fail no being able to find a proper constructor
--
This message was sent by Atlassian Jira
(v8.20.10#820010)