Optimized code.
This commit is contained in:
parent
5b62d85bf0
commit
ad51edcb07
1 changed files with 8 additions and 12 deletions
|
@ -293,9 +293,8 @@ public class TagDataManager
|
||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
this.idsDataById.setId(id, new SimpleTagData());
|
result = new SimpleTagData();
|
||||||
|
this.idsDataById.setId(id, result);
|
||||||
result = (SimpleTagData) this.idsDataById.getId(id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -319,9 +318,8 @@ public class TagDataManager
|
||||||
TagDataListByIndex tags = (TagDataListByIndex) this.idsDataById.getId(id);
|
TagDataListByIndex tags = (TagDataListByIndex) this.idsDataById.getId(id);
|
||||||
if (tags == null)
|
if (tags == null)
|
||||||
{
|
{
|
||||||
this.idsDataById.setId(id, new TagDataListByIndex());
|
tags = new TagDataListByIndex();
|
||||||
|
this.idsDataById.setId(id, tags);
|
||||||
tags = (TagDataListByIndex) this.idsDataById.getId(id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Be sure that lines are existing.
|
// Be sure that lines are existing.
|
||||||
|
@ -357,9 +355,8 @@ public class TagDataManager
|
||||||
TagDataListByIndex tags = (TagDataListByIndex) this.idsDataById.getId(id);
|
TagDataListByIndex tags = (TagDataListByIndex) this.idsDataById.getId(id);
|
||||||
if (tags == null)
|
if (tags == null)
|
||||||
{
|
{
|
||||||
this.idsDataById.setId(id, new TagDataListByIndex());
|
tags = new TagDataListByIndex();
|
||||||
|
this.idsDataById.setId(id, tags);
|
||||||
tags = (TagDataListByIndex) this.idsDataById.getId(id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Be sure that lines are existing.
|
// Be sure that lines are existing.
|
||||||
|
@ -376,9 +373,8 @@ public class TagDataManager
|
||||||
|
|
||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
lineData.put(column, new SimpleTagData());
|
result = new SimpleTagData();
|
||||||
|
lineData.put(column, result);
|
||||||
result = (SimpleTagData) lineData.get(column);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue