| author | Robert Munteanu | 2010-10-25 17:43:33 (EDT) |
|---|---|---|
| committer | Matthias Sohn | 2010-10-26 03:37:35 (EDT) |
| commit | c0ec8e7ffb04ab0c8949cef5ce50ee7889cce009 (patch) (side-by-side diff) | |
| tree | 2c3338c1c87fb6dcb951a1fd7ad9bbe9fc099530 | |
| parent | d2a091c7b41d4cc1996391f8c118094a211c7b8d (diff) | |
| download | egit-c0ec8e7ffb04ab0c8949cef5ce50ee7889cce009.zip egit-c0ec8e7ffb04ab0c8949cef5ce50ee7889cce009.tar.gz egit-c0ec8e7ffb04ab0c8949cef5ce50ee7889cce009.tar.bz2 | |
[findbugs] Remove invocation of new String(String) constructorrefs/changes/97/1797/3
Using the java.lang.String(String) constructor wastes memory because
the object so constructed will be functionally indistinguishable
from the String passed as a parameter.
Change-Id: I46617366a17047dfdaef309bddfd172379da5196
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
| -rw-r--r-- | org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestRepository.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestRepository.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestRepository.java index 90200c4..9e8e65d 100644 --- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestRepository.java +++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/TestRepository.java @@ -332,7 +332,7 @@ public class TestRepository { * @throws IOException */ public void appendFileContent(File file, String content) throws IOException { - appendFileContent(file, new String(content), true); + appendFileContent(file, content, true); } /** |

