You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "mridulpathak (via GitHub)" <gi...@apache.org> on 2026/10/27 07:43:18 UTC

[PR] Improved: Remove this-escape warnings in UtilTimer, UtilResourceBundle, MultivaluedMapContext, LabelInfo, artifactinfo, EntitySyncContext and OFBizApiConfig (OFBIZ-13737) [ofbiz-framework]

mridulpathak opened a new pull request, #2467:
URL: https://github.com/apache/ofbiz-framework/pull/2467

   These constructors called overridable or inherited methods before the object was fully initialized, which javac 21+ reports as this-escape warnings (currently hidden by -Xlint:-this-escape). UtilTimer and LabelInfo now assign their fields directly, UtilResourceBundle drops the hashCode() field initializer that always stored 0, MultivaluedMapContext uses a new protected seeded MapContext constructor instead of push(), ServiceArtifactInfo and EntityArtifactInfo use their aif parameter, EntitySyncContext calls private static helpers that the existing methods now delegate to, and OFBizApiConfig builds a plain ResourceConfig that it passes to super(). Fields that are no longer reassigned are now final. There is no change to public APIs or behaviour. ArtifactInfoFactory.prepareAll() and ControllerViewArtifactInfo still escape this, because fixing them needs an API or behaviour change, so they are left for a separate sub-task.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Improved: Remove this-escape warnings in UtilTimer, UtilResourceBundle, MultivaluedMapContext, LabelInfo, artifactinfo, EntitySyncContext and OFBizApiConfig (OFBIZ-13737) [ofbiz-framework]

Posted by "mridulpathak (via GitHub)" <gi...@apache.org>.
mridulpathak merged PR #2467:
URL: https://github.com/apache/ofbiz-framework/pull/2467


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org