Skip to content
Snippets Groups Projects
Commit 1a2650d4 authored by srosse's avatar srosse
Browse files

OO-291: remove overkill memory optimization

parent 6a29b988
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ public class BGTableItem {
public BGShort(BusinessGroup group) {
key = group.getKey();
name = group.getName() == null ? null : group.getName().intern();
name = group.getName();
maxParticipants = group.getMaxParticipants();
waitingListEnabled = group.getWaitingListEnabled() == null ? false : group.getWaitingListEnabled().booleanValue();
autoCloseRanksEnabled = group.getAutoCloseRanksEnabled() == null ? false : group.getAutoCloseRanksEnabled().booleanValue();
......@@ -214,7 +214,7 @@ public class BGTableItem {
public BGShort(BusinessGroupView group) {
key = group.getKey();
name = group.getName() == null ? null : group.getName().intern();
name = group.getName();
maxParticipants = group.getMaxParticipants();
numWaiting = group.getNumWaiting();
numOfOwners = group.getNumOfOwners();
......
......@@ -34,12 +34,12 @@ class BusinessGroupEntry {
private final Date creationDate;
public BusinessGroupEntry(String name, Date creationDate) {
this.name = name == null ? null : name.intern();
this.name = name;
this.creationDate = creationDate;
}
public BusinessGroupEntry(BusinessGroup group) {
this.name = group.getName() == null ? "???" : group.getName().intern();
this.name = group.getName() == null ? "???" : group.getName();
this.creationDate = group.getCreationDate();
}
......
......@@ -64,7 +64,7 @@ public class RepositoryPortletEntry implements PortletEntry<RepositoryEntryShort
public REShort(RepositoryEntry entry) {
key = entry.getKey();
displayname = entry.getDisplayname().intern();
displayname = entry.getDisplayname();
type = entry.getOlatResource().getResourceableTypeName();
statusCode = entry.getStatusCode();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment