memory: do not store millions of duplicate strings

This commit is contained in:
Alexey Kudravtsev
2016-08-24 12:55:08 +03:00
parent a1ca84be27
commit b7dccaf434
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@ public class VcsCommitMetadataImpl extends VcsShortCommitDetailsImpl implements
@NotNull String subject, @NotNull VcsUser author, @NotNull String message,
@NotNull VcsUser committer, long authorTime) {
super(hash, parents, commitTime, root, subject, author, committer, authorTime);
myFullMessage = message;
myFullMessage = message.equals(getSubject()) ? getSubject() : message;
}
@Override