Ignore:
Timestamp:
2021-10-22T14:38:34+13:00 (3 years ago)
Author:
davidb
Message:

Some notes on how to address deprecated warnings added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/gems/MetadataSetTree.java

    r18412 r35667  
    107107    public void mouseReleased(MouseEvent event) { }
    108108
     109
     110    // Observer/Obserable became deprecated in JDK9 onwards, although with no set date for removal.
     111    // If looking to replace use of Observer/Obserable, then using java.bean.PropertyChangeLister
     112    // and PropertyChangeEvent is (StackOverflow) cited go to.
     113    // For a worked example comparing the two different approaches, see:
     114    //
     115    //   https://gist.github.com/mtorchiano/e69ac7e309fee81bd17f4f0740b9ffa9
     116    //   Replacing Observer-Observable (inheritance vs. composition)
     117   
    109118    public void update(Observable o,Object arg){
    110119        if (arg !=null){
Note: See TracChangeset for help on using the changeset viewer.