Skip to content

Commit cb31bc7

Browse files
committed
minor IntelliJ hinted code cleanups
1 parent cc8e914 commit cb31bc7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

compiler/src/jdk.graal.compiler.management/src/jdk/graal/compiler/management/JMXServiceProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ protected void dumpHeap(String outputFile, boolean live) throws IOException {
8989
Files.delete(path);
9090
}
9191
hotspotMXBean.dumpHeap(outputFile, live);
92-
} catch (RuntimeException re) {
93-
throw re;
94-
} catch (Exception exp) {
95-
throw new RuntimeException(exp);
92+
} catch (IOException | RuntimeException e) {
93+
throw e;
94+
} catch (Exception e) {
95+
throw new RuntimeException(e);
9696
}
9797
}
9898

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/common/LibGraalSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public interface LibGraalSupport {
117117
* Dumps the heap to {@code outputFile} in hprof format.
118118
*
119119
* @param live if true, performs a full GC first so that only live objects are dumped
120-
* @throws IOException if an IO error occurred dyring dumping
120+
* @throws IOException if an IO error occurred during dumping
121121
* @throws UnsupportedOperationException if this operation is not supported.
122122
*/
123123
void dumpHeap(String outputFile, boolean live) throws IOException;

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/serviceprovider/GraalServices.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ public static List<String> getInputArguments() {
494494
* Dumps the heap to {@code outputFile} in hprof format.
495495
*
496496
* @param live if true, performs a full GC first so that only live objects are dumped
497-
* @throws IOException if an IO error occurred dyring dumping
497+
* @throws IOException if an IO error occurred during dumping
498498
* @throws UnsupportedOperationException if this operation is not supported.
499499
*/
500500
public static void dumpHeap(String outputFile, boolean live) throws IOException, UnsupportedOperationException {

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/serviceprovider/JMXService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public abstract class JMXService {
4848
* Dumps the heap to {@code outputFile} in hprof format.
4949
*
5050
* @param live if true, performs a full GC first so that only live objects are dumped
51-
* @throws IOException if an IO error occurred dyring dumping
51+
* @throws IOException if an IO error occurred during dumping
5252
*/
5353
protected abstract void dumpHeap(String outputFile, boolean live) throws IOException;
5454
}

0 commit comments

Comments
 (0)