OSDN Git Service

use diamond operator.
authorOlyutorskii <olyutorskii@users.osdn.me>
Thu, 4 Jul 2019 05:28:30 +0000 (14:28 +0900)
committerOlyutorskii <olyutorskii@users.osdn.me>
Thu, 4 Jul 2019 05:28:30 +0000 (14:28 +0900)
src/main/java/jp/sfjp/mikutoga/vmd/model/NumberedVmdFlag.java
src/main/java/jp/sfjp/mikutoga/vmd/model/PosCurve.java
src/main/java/jp/sfjp/mikutoga/vmd/model/VmdMotion.java
src/main/java/jp/sfjp/mikutoga/vmd/model/binio/BasicExporter.java
src/main/java/jp/sfjp/mikutoga/vmd/model/xml/VmdTag.java
src/main/java/jp/sfjp/mikutoga/vmd2xml/CmdLine.java
src/main/java/jp/sfjp/mikutoga/vmd2xml/OptSwitch.java

index b3b24cd..3a520f0 100644 (file)
@@ -25,7 +25,7 @@ public class NumberedVmdFlag
 
 
     private boolean shown = true;
-    private final List<IkSwitch> ikSwList = new LinkedList<IkSwitch>();
+    private final List<IkSwitch> ikSwList = new LinkedList<>();
 
 
     /**
index d73c62c..488b4e0 100644 (file)
@@ -48,7 +48,7 @@ public class PosCurve implements Iterable<BezierParam> {
     @Override
     public Iterator<BezierParam> iterator(){
         List<BezierParam> list;
-        list = new ArrayList<BezierParam>(IT_SZ);
+        list = new ArrayList<>(IT_SZ);
         list.add(this.intpltXpos);
         list.add(this.intpltYpos);
         list.add(this.intpltZpos);
index e689eab..68a9a3e 100644 (file)
@@ -43,13 +43,13 @@ public class VmdMotion {
     public VmdMotion(){
         super();
 
-        this.bonePartMap  = new LinkedHashMap<String, List<BoneMotion>>();
-        this.morphPartMap = new LinkedHashMap<String, List<MorphMotion>>();
+        this.bonePartMap  = new LinkedHashMap<>();
+        this.morphPartMap = new LinkedHashMap<>();
 
-        this.cameraMotionList   = new LinkedList<CameraMotion>();
-        this.luminousMotionList = new LinkedList<LuminousMotion>();
-        this.shadowMotionList   = new LinkedList<ShadowMotion>();
-        this.flagList           = new LinkedList<NumberedVmdFlag>();
+        this.cameraMotionList   = new LinkedList<>();
+        this.luminousMotionList = new LinkedList<>();
+        this.shadowMotionList   = new LinkedList<>();
+        this.flagList           = new LinkedList<>();
 
         return;
     }
@@ -177,7 +177,7 @@ public class VmdMotion {
 
         List<BoneMotion> list = this.bonePartMap.get(name);
         if(list == null){
-            list = new LinkedList<BoneMotion>();
+            list = new LinkedList<>();
             this.bonePartMap.put(name, list);
         }
 
@@ -198,7 +198,7 @@ public class VmdMotion {
 
         List<MorphMotion> list = this.morphPartMap.get(name);
         if(list == null){
-            list = new LinkedList<MorphMotion>();
+            list = new LinkedList<>();
             this.morphPartMap.put(name, list);
         }
 
index 5e68804..5e035c1 100644 (file)
@@ -143,7 +143,7 @@ class BasicExporter extends BinaryExporter {
 
         Map<String, List<BoneMotion>> map = motion.getBonePartMap();
 
-        List<BoneMotion> bmotionList = new LinkedList<BoneMotion>();
+        List<BoneMotion> bmotionList = new LinkedList<>();
         for(List<BoneMotion> eachList : map.values()){
             bmotionList.addAll(eachList);
         }
@@ -283,7 +283,7 @@ class BasicExporter extends BinaryExporter {
             throws IOException, IllegalTextExportException{
         Map<String, List<MorphMotion>> map = motion.getMorphPartMap();
 
-        List<MorphMotion> morphList = new LinkedList<MorphMotion>();
+        List<MorphMotion> morphList = new LinkedList<>();
         for(List<MorphMotion> eachList : map.values()){
             morphList.addAll(eachList);
         }
index a900ddf..b2f5b86 100644 (file)
@@ -57,7 +57,7 @@ enum VmdTag {
 
 
     private static final Map<String, VmdTag> NAME_MAP =
-            new HashMap<String, VmdTag>();
+            new HashMap<>();
 
     static{
         for(VmdTag tag : values()){
index 32fa735..8ebd785 100644 (file)
@@ -49,7 +49,7 @@ final class CmdLine {
      * @return 解析されたコマンドライン並び
      */
     static List<CmdLine> parse(List<String> argList){
-        List<CmdLine> result = new LinkedList<CmdLine>();
+        List<CmdLine> result = new LinkedList<>();
 
         Iterator<String> it = argList.iterator();
         while (it.hasNext()) {
@@ -64,7 +64,7 @@ final class CmdLine {
             if (info.opt != null) {
                 exArgNum = info.opt.getExArgNum();
             }
-            info.optArgs = new ArrayList<String>(exArgNum + 1);
+            info.optArgs = new ArrayList<>(exArgNum + 1);
 
             info.optArgs.add(arg);
 
index 9520f29..8fa18cd 100644 (file)
@@ -54,7 +54,7 @@ enum OptSwitch {
     private static final Map<String, OptSwitch> MAP_OPT;
 
     static{
-        Map<String, OptSwitch> map = new HashMap<String, OptSwitch>();
+        Map<String, OptSwitch> map = new HashMap<>();
 
         for(OptSwitch opt : values()){
             for(String cmdarg : opt.cmdopts){