Bug 388

Summary: The constructor Date(String) is deprecated
Product: online shop management system Reporter: Samuel Yuen <samueyuen2-c>
Component: ProductsAssignee: Samuel Yuen <samueyuen2-c>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Low    
Version: 1.0.0   
Hardware: PC   
OS: Windows   

Description Samuel Yuen 2020-11-01 18:39:16 HKT
When initializing testProduct.java
The Date constructor used for testing is deprecated.
The program still works, but try to find one not deprecated.
It will be better for future development.

Warning Message:
The constructor Date(String) is deprecated
/gameshop/src/testProduct/testProduct.java
Comment 1 Samuel Yuen 2020-11-03 19:03:37 HKT
The Date class is now changed to SimpleDateFormat.
By using SimpleDateFormat, it can simply parse the date string in the format we want, and used for further purpose.
The Class and Test Unit are updated.