[jira] [Commented] (OFBIZ-6279) UtilDateTime has an ImmutableDate inner class that has deprecation warnings

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-6279) UtilDateTime has an ImmutableDate inner class that has deprecation warnings

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-6279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14507250#comment-14507250 ]

Adam Heath commented on OFBIZ-6279:
-----------------------------------

  [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1197: warning: [deprecation] setYear(int) in Date has been deprecated
  [javac17]         public void setYear(int year) {
  [javac17]                     ^
  [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1202: warning: [deprecation] setMonth(int) in Date has been deprecated
  [javac17]         public void setMonth(int month) {
  [javac17]                     ^
  [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1207: warning: [deprecation] setDate(int) in Date has been deprecated
  [javac17]         public void setDate(int date) {
  [javac17]                     ^
  [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1212: warning: [deprecation] setHours(int) in Date has been deprecated
  [javac17]         public void setHours(int hours) {
  [javac17]                     ^
  [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1217: warning: [deprecation] setMinutes(int) in Date has been deprecated
  [javac17]         public void setMinutes(int minutes) {
  [javac17]                     ^
  [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1222: warning: [deprecation] setSeconds(int) in Date has been deprecated
  [javac17]         public void setSeconds(int seconds) {
  [javac17]                     ^


> UtilDateTime has an ImmutableDate inner class that has deprecation warnings
> ---------------------------------------------------------------------------
>
>                 Key: OFBIZ-6279
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6279
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: ALL COMPONENTS
>            Reporter: Adam Heath
>            Assignee: Adam Heath
>
> When extending/implementing a class/interface, where methods in the parent have been marked deprecated, sub-instances also get deprecation warnings.  The fix here is to also mark the sub-instances deprecated(with @Deprecated or /** @deprecated */



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)