You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2021/02/09 14:43:16 UTC

[GitHub] [incubator-daffodil] stevedlawrence commented on pull request #489: Allow garbage collection of UStateForSuspension's and DirectOrBufferedDataOutputStream's

stevedlawrence commented on pull request #489:
URL: https://github.com/apache/incubator-daffodil/pull/489#issuecomment-775990558


   > That's another reason why we need to fix the scala compiler warning settings. In principle it should have told us there were no reads of prior pointer right?
   
   I'm not sure. There was technically a read here in this code that was removed:
   ```scala
     private var _prior: UStateForSuspension = null
     override def prior = _prior
   ```
   And although the ``def prior`` is never called anywhere in Daffodil, it is a public function so theoretically could be used by library using Daffodil. I think because of that scalac wouldn't warn about that. We probably need to get much better at marking things as public/private/protected before we get unused warnings.


----------------------------------------------------------------
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.

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