From 7cf6c3af17985d59b6f3701751fb32b0167c31cb Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 10 Sep 2012 16:45:02 +0000 Subject: [PATCH] remove incorrect cast --- core/src/processing/opengl/PGL.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index dca6bd490..964efa98a 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -1011,10 +1011,9 @@ public class PGL { animator.requestDisplay(); } } catch (GLException e) { - // Unwrap GLException so that only the causing exception - // is shown. + // Unwrap GLException so that only the causing exception is shown. Throwable tr = e.getCause(); - throw (RuntimeException)tr; + throw new RuntimeException(tr); } } }