File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
processor/java/org/truffleruby/processor
shared/java/org/truffleruby/shared Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public class BuildInformationProcessor extends TruffleRubyProcessor {
47
47
private String shortRevision ;
48
48
private String fullRevision ;
49
49
private String compileDate ;
50
- private String copyrightYear ;
50
+ private int copyrightYear ;
51
51
private String kernelMajorVersion ;
52
52
53
53
@ Override
@@ -59,7 +59,7 @@ public synchronized void init(ProcessingEnvironment env) {
59
59
fullRevision = runCommand ("git rev-parse HEAD" );
60
60
shortRevision = fullRevision .substring (0 , 8 );
61
61
compileDate = runCommand ("git log -1 --date=short --pretty=format:%cd" );
62
- copyrightYear = compileDate .split ("\\ -" )[0 ];
62
+ copyrightYear = Integer . parseInt ( compileDate .split ("\\ -" )[0 ]) ;
63
63
kernelMajorVersion = findKernelMajorVersion ();
64
64
} catch (Throwable e ) {
65
65
throw new Error (e );
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public interface BuildInformation {
20
20
21
21
String getFullRevision ();
22
22
23
- String getCopyrightYear ();
23
+ int getCopyrightYear ();
24
24
25
25
String getCompileDate ();
26
26
You can’t perform that action at this time.
0 commit comments