Changeset 7514


Ignore:
Timestamp:
Nov 2, 2018, 8:51:13 AM (3 years ago)
Author:
Nicklas Nordborg
Message:

References #2129: Preparations for Java 11 support

Get rid of warnings related to new Long(String) by replacing it with Long.parseLong(String).

Location:
trunk/src/core/net/sf/basedb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/DateUtil.java

    r7308 r7514  
    129129        try
    130130        {
    131           result = new Date(new Long(value));
     131          result = new Date(Long.parseLong(value));
    132132        }
    133133        catch (Exception ex2)
     
    177177        try
    178178        {
    179           result = new Date(new Long(value));
     179          result = new Date(Long.parseLong(value));
    180180        }
    181181        catch (Exception ex2)
  • trunk/src/core/net/sf/basedb/util/formatter/DateFormatter.java

    r6127 r7514  
    8989      try
    9090      {
    91         return new Date(new Long(value));
     91        return new Date(Long.parseLong(value));
    9292      }
    9393      catch (Exception ex2)
Note: See TracChangeset for help on using the changeset viewer.