trackeditor: fix deprecated errors

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8431 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f799a277cd6bb748116d15f94611e830159a44a4
Former-commit-id: bc87e3d8eb4ff0ee9ef513795709bfe62c59bca8
This commit is contained in:
iobyte 2022-08-28 16:19:47 +00:00
parent d07c0a19d1
commit a9ebcf4f0e

View file

@ -695,7 +695,7 @@ public class XmlReader
String tmp = name.substring(6); String tmp = name.substring(6);
try try
{ {
Integer tmpInt = new Integer(tmp); Integer tmpInt = Integer.parseInt(tmp);
int i = tmpInt.intValue(); int i = tmpInt.intValue();
if (i > Editor.getProperties().getCurveNameCount()) if (i > Editor.getProperties().getCurveNameCount())
{ {
@ -712,7 +712,7 @@ public class XmlReader
String tmp = name.substring(9); String tmp = name.substring(9);
try try
{ {
Integer tmpInt = new Integer(tmp); Integer tmpInt = Integer.parseInt(tmp);
int i = tmpInt.intValue(); int i = tmpInt.intValue();
if (i > Editor.getProperties().getStraightNameCount()) if (i > Editor.getProperties().getStraightNameCount())
{ {