[hibernate-issues] [JIRA] (HSEARCH-3854) Remove the unnecessary generic type parameter for DocumentElement

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Wed Mar 4 04:10:45 EST 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiYTJjNTdmODRhMTQyNDYxNTlhNTQ5MTExMGJiMDk1MjYiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-3854?atlOrigin=eyJpIjoiYTJjNTdmODRhMTQyNDYxNTlhNTQ5MTExMGJiMDk1MjYiLCJwIjoiaiJ9 ) HSEARCH-3854 ( https://hibernate.atlassian.net/browse/HSEARCH-3854?atlOrigin=eyJpIjoiYTJjNTdmODRhMTQyNDYxNTlhNTQ5MTExMGJiMDk1MjYiLCJwIjoiaiJ9 ) Remove the unnecessary generic type parameter for DocumentElement ( https://hibernate.atlassian.net/browse/HSEARCH-3854?atlOrigin=eyJpIjoiYTJjNTdmODRhMTQyNDYxNTlhNTQ5MTExMGJiMDk1MjYiLCJwIjoiaiJ9 )

Issue Type: Task Assignee: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) Components: backend-elasticsearch, backend-lucene, engine, mapper-pojo Created: 04/Mar/2020 01:10 AM Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

Throughout the codebase, there are many generic type parameters of the form D extends DocumentElement. These parameters are unnecessary, because we always use the base class DocumentElement and never take advantage of methods on subtypes.

They make everything more complicated for no good reason: let's remove them.

( https://hibernate.atlassian.net/browse/HSEARCH-3854#add-comment?atlOrigin=eyJpIjoiYTJjNTdmODRhMTQyNDYxNTlhNTQ5MTExMGJiMDk1MjYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3854#add-comment?atlOrigin=eyJpIjoiYTJjNTdmODRhMTQyNDYxNTlhNTQ5MTExMGJiMDk1MjYiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:d2b7993 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200304/01db0ffe/attachment.html 


More information about the hibernate-issues mailing list