We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 681ba1e commit 2e59c5aCopy full SHA for 2e59c5a
src/processor/java/org/truffleruby/processor/BuildInformationProcessor.java
@@ -68,15 +68,8 @@ public synchronized void init(ProcessingEnvironment env) {
68
}
69
70
71
- private String findKernelMajorVersion() {
72
- String kernelVersion = "";
73
- try {
74
- kernelVersion = runCommand("uname -r");
75
- } catch (IOException e) {
76
- } catch (InterruptedException e) {
77
- e.printStackTrace();
78
- }
79
-
+ private String findKernelMajorVersion() throws IOException, InterruptedException {
+ final String kernelVersion = runCommand("uname -r");
80
return kernelVersion.split(Pattern.quote("."))[0];
81
82
0 commit comments