android-utils icon indicating copy to clipboard operation
android-utils copied to clipboard

DateUtils: Get month implementation too much bloated.

Open vijayrawatsan opened this issue 10 years ago • 1 comments

Use return new SimpleDateFormat("MMMMM").format(date); to get month Please do relevant null checks as well.

vijayrawatsan avatar Jul 12 '15 17:07 vijayrawatsan

Yes. Agreed. Tthats really shitty code written long time back and never looked into again. I was thinking of removing that method altogether and also run static code analysis on it.

jaydeepw avatar Jul 12 '15 17:07 jaydeepw