Skip to content

Commit

Permalink
Refactoring. Use primtitives (faster)
Browse files Browse the repository at this point in the history
  • Loading branch information
ullenius committed Apr 25, 2023
1 parent 10b4237 commit 2f69cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/personnummer/Personnummer.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public String toString() {
* @return DateTime object from the personnummer object
*/
public LocalDateTime getDate() {
return LocalDateTime.of(Integer.valueOf(fullYear), java.time.Month.of(Integer.valueOf(month)), Integer.valueOf(realDay), 0, 0);
return LocalDateTime.of(Integer.parseInt(fullYear), java.time.Month.of(Integer.parseInt(month)), realDay, 0, 0);
}

/**
Expand Down

0 comments on commit 2f69cd5

Please sign in to comment.