Skip to content

Commit f2f70ac

Browse files
committed
refactor: update ClasspathPropertiesVersionProvider to use lazy initialization for version loading
1 parent 7905f12 commit f2f70ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/edu/kit/datamanager/ro_crate/util/ClasspathPropertiesVersionProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class ClasspathPropertiesVersionProvider implements VersionProvider {
1717
* Constructs a ClasspathPropertiesVersionProvider that reads the version from a properties file in the classpath.
1818
*/
1919
public ClasspathPropertiesVersionProvider() {
20-
this.cachedVersion = getVersion();
20+
// Lazy initialization - version loaded on first access
2121
}
2222

2323
@Override

0 commit comments

Comments
 (0)