• R/O
  • HTTP
  • SSH
  • HTTPS

Vmd2XML: Commit

Vmd2XMLは、3D動画制作ツール、MikuMikuDance(MMD)で用いられるモーションデータファイル(*.vmd)の内容を、XML形式のデータファイルと交換するためのアプリケーションです。


Commit MetaInfo

Revision1a46066826327da8f71b8d1d51a850b40edc170d (tree)
Time2019-07-04 14:28:30
AuthorOlyutorskii <olyutorskii@user...>
CommiterOlyutorskii

Log Message

use diamond operator.

Change Summary

Incremental Difference

--- a/src/main/java/jp/sfjp/mikutoga/vmd/model/NumberedVmdFlag.java
+++ b/src/main/java/jp/sfjp/mikutoga/vmd/model/NumberedVmdFlag.java
@@ -25,7 +25,7 @@ public class NumberedVmdFlag
2525
2626
2727 private boolean shown = true;
28- private final List<IkSwitch> ikSwList = new LinkedList<IkSwitch>();
28+ private final List<IkSwitch> ikSwList = new LinkedList<>();
2929
3030
3131 /**
--- a/src/main/java/jp/sfjp/mikutoga/vmd/model/PosCurve.java
+++ b/src/main/java/jp/sfjp/mikutoga/vmd/model/PosCurve.java
@@ -48,7 +48,7 @@ public class PosCurve implements Iterable<BezierParam> {
4848 @Override
4949 public Iterator<BezierParam> iterator(){
5050 List<BezierParam> list;
51- list = new ArrayList<BezierParam>(IT_SZ);
51+ list = new ArrayList<>(IT_SZ);
5252 list.add(this.intpltXpos);
5353 list.add(this.intpltYpos);
5454 list.add(this.intpltZpos);
--- a/src/main/java/jp/sfjp/mikutoga/vmd/model/VmdMotion.java
+++ b/src/main/java/jp/sfjp/mikutoga/vmd/model/VmdMotion.java
@@ -43,13 +43,13 @@ public class VmdMotion {
4343 public VmdMotion(){
4444 super();
4545
46- this.bonePartMap = new LinkedHashMap<String, List<BoneMotion>>();
47- this.morphPartMap = new LinkedHashMap<String, List<MorphMotion>>();
46+ this.bonePartMap = new LinkedHashMap<>();
47+ this.morphPartMap = new LinkedHashMap<>();
4848
49- this.cameraMotionList = new LinkedList<CameraMotion>();
50- this.luminousMotionList = new LinkedList<LuminousMotion>();
51- this.shadowMotionList = new LinkedList<ShadowMotion>();
52- this.flagList = new LinkedList<NumberedVmdFlag>();
49+ this.cameraMotionList = new LinkedList<>();
50+ this.luminousMotionList = new LinkedList<>();
51+ this.shadowMotionList = new LinkedList<>();
52+ this.flagList = new LinkedList<>();
5353
5454 return;
5555 }
@@ -177,7 +177,7 @@ public class VmdMotion {
177177
178178 List<BoneMotion> list = this.bonePartMap.get(name);
179179 if(list == null){
180- list = new LinkedList<BoneMotion>();
180+ list = new LinkedList<>();
181181 this.bonePartMap.put(name, list);
182182 }
183183
@@ -198,7 +198,7 @@ public class VmdMotion {
198198
199199 List<MorphMotion> list = this.morphPartMap.get(name);
200200 if(list == null){
201- list = new LinkedList<MorphMotion>();
201+ list = new LinkedList<>();
202202 this.morphPartMap.put(name, list);
203203 }
204204
--- a/src/main/java/jp/sfjp/mikutoga/vmd/model/binio/BasicExporter.java
+++ b/src/main/java/jp/sfjp/mikutoga/vmd/model/binio/BasicExporter.java
@@ -143,7 +143,7 @@ class BasicExporter extends BinaryExporter {
143143
144144 Map<String, List<BoneMotion>> map = motion.getBonePartMap();
145145
146- List<BoneMotion> bmotionList = new LinkedList<BoneMotion>();
146+ List<BoneMotion> bmotionList = new LinkedList<>();
147147 for(List<BoneMotion> eachList : map.values()){
148148 bmotionList.addAll(eachList);
149149 }
@@ -283,7 +283,7 @@ class BasicExporter extends BinaryExporter {
283283 throws IOException, IllegalTextExportException{
284284 Map<String, List<MorphMotion>> map = motion.getMorphPartMap();
285285
286- List<MorphMotion> morphList = new LinkedList<MorphMotion>();
286+ List<MorphMotion> morphList = new LinkedList<>();
287287 for(List<MorphMotion> eachList : map.values()){
288288 morphList.addAll(eachList);
289289 }
--- a/src/main/java/jp/sfjp/mikutoga/vmd/model/xml/VmdTag.java
+++ b/src/main/java/jp/sfjp/mikutoga/vmd/model/xml/VmdTag.java
@@ -57,7 +57,7 @@ enum VmdTag {
5757
5858
5959 private static final Map<String, VmdTag> NAME_MAP =
60- new HashMap<String, VmdTag>();
60+ new HashMap<>();
6161
6262 static{
6363 for(VmdTag tag : values()){
--- a/src/main/java/jp/sfjp/mikutoga/vmd2xml/CmdLine.java
+++ b/src/main/java/jp/sfjp/mikutoga/vmd2xml/CmdLine.java
@@ -49,7 +49,7 @@ final class CmdLine {
4949 * @return 解析されたコマンドライン並び
5050 */
5151 static List<CmdLine> parse(List<String> argList){
52- List<CmdLine> result = new LinkedList<CmdLine>();
52+ List<CmdLine> result = new LinkedList<>();
5353
5454 Iterator<String> it = argList.iterator();
5555 while (it.hasNext()) {
@@ -64,7 +64,7 @@ final class CmdLine {
6464 if (info.opt != null) {
6565 exArgNum = info.opt.getExArgNum();
6666 }
67- info.optArgs = new ArrayList<String>(exArgNum + 1);
67+ info.optArgs = new ArrayList<>(exArgNum + 1);
6868
6969 info.optArgs.add(arg);
7070
--- a/src/main/java/jp/sfjp/mikutoga/vmd2xml/OptSwitch.java
+++ b/src/main/java/jp/sfjp/mikutoga/vmd2xml/OptSwitch.java
@@ -54,7 +54,7 @@ enum OptSwitch {
5454 private static final Map<String, OptSwitch> MAP_OPT;
5555
5656 static{
57- Map<String, OptSwitch> map = new HashMap<String, OptSwitch>();
57+ Map<String, OptSwitch> map = new HashMap<>();
5858
5959 for(OptSwitch opt : values()){
6060 for(String cmdarg : opt.cmdopts){
Show on old repository browser