Ignore:
Timestamp:
2021-09-11T14:11:31+12:00 (3 years ago)
Author:
kjdon
Message:

new Long(long) and new Integer(int) are deprecated. Use Integer.valueOf and Long.valueOf instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/OAIReceptionist.java

    r35225 r35363  
    7575    * NOTE: Being done with Integer instead of int because they're put into Vectors and they can only contain Objects not primitive data types.
    7676  */
    77   protected static final Integer DEACTIVATED = new Integer(0);
    78   protected static final Integer ACTIVE = new Integer(1);
     77  protected static final Integer DEACTIVATED = Integer.valueOf(0);
     78  protected static final Integer ACTIVE = Integer.valueOf(1);
    7979 
    8080  /** If this is true, then there are no OAI enabled collections, so can always return noRecordsMatch (after validating the request params) */
Note: See TracChangeset for help on using the changeset viewer.