From: Javen O'Neal Date: Wed, 19 Oct 2016 05:07:30 +0000 (+0000) Subject: findbugs: Switch statement found in org.apache.poi.sl.draw.DrawShape.applyTransform... X-Git-Tag: REL_3_16_BETA1~87 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5fed0edcaedad6dceca02643764c78af36061846;p=poi.git findbugs: Switch statement found in org.apache.poi.sl.draw.DrawShape.applyTransform(Graphics2D) where default case is missing git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765530 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/sl/draw/DrawShape.java b/src/java/org/apache/poi/sl/draw/DrawShape.java index ff226be906..1d0eca0008 100644 --- a/src/java/org/apache/poi/sl/draw/DrawShape.java +++ b/src/java/org/apache/poi/sl/draw/DrawShape.java @@ -135,6 +135,8 @@ public class DrawShape implements Drawable { graphics.translate(-centerX, -centerY); } break; + default: + throw new RuntimeException("unexpected transform code " + ch); } } }