Original PR: https://github.com/apple/pkl/pull/344 Author: @odenix Created: 3/20/2024 Status: ✅ Merged Merged: 3/21/2024 Merged by: @bioball
Base: main ← Head: calendar
main
calendar
fbfc3d1
1 file changed (+8 additions, -7 deletions)
📝 pkl-core/src/main/java/org/pkl/core/project/ProjectPackager.java (+8 -7)
pkl-core/src/main/java/org/pkl/core/project/ProjectPackager.java
It's unnecessary to load and instantiate an expensive Calendar class to compute this constant.
jshell> new GregorianCalendar(1980, Calendar.FEBRUARY, 1, 0, 0, 0).getTimeInMillis(); $1 ==> 318240000000
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/344
Author: @odenix
Created: 3/20/2024
Status: ✅ Merged
Merged: 3/21/2024
Merged by: @bioball
Base:
main← Head:calendar📝 Commits (1)
fbfc3d1Eliminate unnecessary use of GregorianCalendar📊 Changes
1 file changed (+8 additions, -7 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/project/ProjectPackager.java(+8 -7)📄 Description
It's unnecessary to load and instantiate an expensive Calendar class to compute this constant.
jshell> new GregorianCalendar(1980, Calendar.FEBRUARY, 1, 0, 0, 0).getTimeInMillis();
$1 ==> 318240000000
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.