[ 
https://issues.apache.org/jira/browse/WW-5512?focusedWorklogId=950962&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-950962
 ]

ASF GitHub Bot logged work on WW-5512:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Jan/25 16:54
            Start Date: 05/Jan/25 16:54
    Worklog Time Spent: 10m 
      Work Description: sonarqubecloud[bot] commented on PR #1175:
URL: https://github.com/apache/struts/pull/1175#issuecomment-2571687767

   ## [![Quality Gate 
Failed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-failed-20px.png
 'Quality Gate 
Failed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1175) 
**Quality Gate failed**  
   Failed conditions  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/failed-16px.png
 '') [22 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1175&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/failed-16px.png
 '') [42.2% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1175&metric=new_coverage&view=list)
 (required ≥ 80%)  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/failed-16px.png
 '') [3.4% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1175&metric=new_duplicated_lines_density&view=list)
 (required ≤ 3%)  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/failed-16px.png
 '') [E Security Rating on New 
Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1175) 
(required ≥ A)  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/failed-16px.png
 '') [E Reliability Rating on New 
Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1175) 
(required ≥ A)  
     
   [See analysis details on SonarQube 
Cloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1175)
   
   ##   
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/light_bulb-16px.png
 '') Catch issues before they fail your Quality Gate with our IDE extension 
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/sonarlint-16px.png
 '') [SonarQube for 
IDE](https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=pull-request)
   
   




Issue Time Tracking
-------------------

    Worklog Id:     (was: 950962)
    Time Spent: 20m  (was: 10m)

> 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.8.0, 7.1.0
>
>          Time Spent: 20m
>  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)

Reply via email to