Subversion Repositories SmartDukaan

Rev

Rev 36253 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36253 Rev 36306
Line 31... Line 31...
31
public class CheckOppoWarrantyTask {
31
public class CheckOppoWarrantyTask {
32
 
32
 
33
    private static final Logger LOGGER = LogManager.getLogger(CheckOppoWarrantyTask.class);
33
    private static final Logger LOGGER = LogManager.getLogger(CheckOppoWarrantyTask.class);
34
 
34
 
35
    static {
35
    static {
-
 
36
        try {
36
        OpenCV.loadShared();
37
            OpenCV.loadShared();
-
 
38
        } catch (Throwable t) {
-
 
39
            LogManager.getLogger(CheckOppoWarrantyTask.class).warn("OpenCV not available on this platform: {}", t.getMessage());
-
 
40
        }
37
    }
41
    }
38
 
42
 
39
    public Map<String, LocalDate> checkWarranty(List<String> imeis) {
43
    public Map<String, LocalDate> checkWarranty(List<String> imeis) {
40
        Map<String, LocalDate> dateMap = new HashMap<>();
44
        Map<String, LocalDate> dateMap = new HashMap<>();
41
        LOGGER.info("Initiating webdriver...");
45
        LOGGER.info("Initiating webdriver...");