Mercurial > hg > truffle
comparison graal/com.oracle.max.base/src/com/sun/max/gui/ThrowableDialog.java @ 4142:bc8527f3071c
Adjust code base to new level of warnings.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 18 Dec 2011 05:24:06 +0100 |
parents | e233f5660da4 |
children |
comparison
equal
deleted
inserted
replaced
4141:04d21be7a24f | 4142:bc8527f3071c |
---|---|
33 * A dialog for displaying the details of an exception. Initially the dialog only shows the exception's | 33 * A dialog for displaying the details of an exception. Initially the dialog only shows the exception's |
34 * {@linkplain Throwable#getMessage() message}. It includes a button for expanding the dialog to also show the stack | 34 * {@linkplain Throwable#getMessage() message}. It includes a button for expanding the dialog to also show the stack |
35 * trace. When the stack trace is shown, pressing the same button hides the stack trace. | 35 * trace. When the stack trace is shown, pressing the same button hides the stack trace. |
36 */ | 36 */ |
37 public final class ThrowableDialog extends JDialog { | 37 public final class ThrowableDialog extends JDialog { |
38 | |
39 /** | |
40 * | |
41 */ | |
42 private static final long serialVersionUID = 4566345464169636472L; | |
38 | 43 |
39 /** | 44 /** |
40 * Creates a dialog to display the details of an exception and makes it visible. | 45 * Creates a dialog to display the details of an exception and makes it visible. |
41 * | 46 * |
42 * @param throwable the exception whose details are being displayed | 47 * @param throwable the exception whose details are being displayed |
149 setLocationRelativeTo(owner); | 154 setLocationRelativeTo(owner); |
150 } | 155 } |
151 | 156 |
152 // Test code | 157 // Test code |
153 | 158 |
159 @SuppressWarnings("unused") | |
154 public static void main(String[] args) { | 160 public static void main(String[] args) { |
155 try { | 161 try { |
156 recurse(0); | 162 recurse(0); |
157 } catch (RuntimeException runtimeException) { | 163 } catch (RuntimeException runtimeException) { |
158 new ThrowableDialog(runtimeException, null, "Runtime Exception"); | 164 new ThrowableDialog(runtimeException, null, "Runtime Exception"); |