OSDN Git Service

checkstyle対応
[mikutoga/Pmd2XML.git] / src / main / java / jp / sfjp / mikutoga / pmd / model / RigidShape.java
index 40c9ad8..8279a90 100644 (file)
@@ -7,7 +7,7 @@
 
 package jp.sfjp.mikutoga.pmd.model;
 
-import jp.sourceforge.mikutoga.pmd.RigidShapeType;
+import jp.sfjp.mikutoga.pmd.RigidShapeType;
 
 /**
  * 剛体形状に関する情報。
@@ -15,10 +15,14 @@ import jp.sourceforge.mikutoga.pmd.RigidShapeType;
  */
 public class RigidShape {
 
+    private static final float DEF_DIM = 0.1f;
+
     private RigidShapeType type = RigidShapeType.BOX;
-    private float width  = 0.1f;
-    private float height = 0.1f;
-    private float depth  = 0.1f;
+
+    private float width  = DEF_DIM;
+    private float height = DEF_DIM;
+    private float depth  = DEF_DIM;
+
 
     /**
      * コンストラクタ。
@@ -28,6 +32,7 @@ public class RigidShape {
         return;
     }
 
+
     /**
      * 剛体形状種別を返す。
      * @return 剛体形状種別