There is no need for lowercasing spaces.

This commit is contained in:
MobiusDev 2019-03-06 16:04:55 +00:00
parent 2600c3d395
commit 11ff29197c
12 changed files with 36 additions and 36 deletions

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -67,10 +67,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));

View File

@ -68,10 +68,10 @@ public class CustomMailManager
final List<ItemHolder> itemHolders = new ArrayList<>();
for (String str : items.split(";"))
{
if (str.toLowerCase().contains(" "))
if (str.contains(" "))
{
final String itemId = str.toLowerCase().split(" ")[0];
final String itemCount = str.toLowerCase().split(" ")[1];
final String itemId = str.split(" ")[0];
final String itemCount = str.split(" ")[1];
if (Util.isDigit(itemId) && Util.isDigit(itemCount))
{
itemHolders.add(new ItemHolder(Integer.parseInt(itemId), Long.parseLong(itemCount)));