jdeb icon indicating copy to clipboard operation
jdeb copied to clipboard

Fixed all the warning of the issue no#628

Open arunsak04 opened this issue 1 year ago • 2 comments

In this refactored code:(DebMojo.java)

Generics are used where applicable to make the code type-safe. Unchecked or unsafe operations are addressed. Warnings are suppressed only when necessary. Some code optimizations and improvements are made

In this refactored code:(OutputTimestampResolver.java)

We use java.time.Instant to represent a point in time. We convert the output date to an Instant, then to milliseconds since the epoch using toEpochMilli() method. We use java.time.LocalDateTime instead of Date for parsing the output timestamp, and convert it to an Instant. We use TimeUnit.SECONDS.toMillis() for converting seconds to milliseconds when reading from the environment variable.

arunsak04 avatar Mar 27 '24 15:03 arunsak04

Thanks for the contribution.

A few notes: The re-formatting makes it quite hard to follow though. Re-formatting should better be kept in a separate PR. Also I am not sure why you thought to remove javadocs. And as you can see the CI is failing.

tcurdt avatar Apr 08 '24 20:04 tcurdt

Could you please revert the reformatting and rebase. It's too hard to review the PR like this.

tcurdt avatar Apr 28 '24 17:04 tcurdt