diff options
| author | Robert Munteanu | 2010-10-25 21:43:33 +0000 |
|---|---|---|
| committer | Matthias Sohn | 2010-10-26 07:37:35 +0000 |
| commit | c0ec8e7ffb04ab0c8949cef5ce50ee7889cce009 (patch) | |
| tree | 2c3338c1c87fb6dcb951a1fd7ad9bbe9fc099530 | |
| parent | d2a091c7b41d4cc1996391f8c118094a211c7b8d (diff) | |
| download | egit-c0ec8e7ffb04ab0c8949cef5ce50ee7889cce009.tar.gz egit-c0ec8e7ffb04ab0c8949cef5ce50ee7889cce009.tar.xz egit-c0ec8e7ffb04ab0c8949cef5ce50ee7889cce009.zip | |
[findbugs] Remove invocation of new String(String) constructor
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 90200c4a0b..9e8e65d3c5 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); } /** |
