diff options
author | Lars Vogel | 2021-03-19 09:19:43 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2021-03-19 10:23:11 +0000 |
commit | bf7f5c79a7d69f6babc596a1817d9f7552e2a92b (patch) | |
tree | 3aba1d2847a77ed058462b567d62cb34daabadd8 | |
parent | 2ddd33c02a71b268107c512355667010b68f5992 (diff) | |
download | eclipse.platform.ua-bf7f5c79a7d69f6babc596a1817d9f7552e2a92b.tar.gz eclipse.platform.ua-bf7f5c79a7d69f6babc596a1817d9f7552e2a92b.tar.xz eclipse.platform.ua-bf7f5c79a7d69f6babc596a1817d9f7552e2a92b.zip |
[Cleanup] Redundant substring() operation in tips.test
Removes the second substring() parameter if this parameter is the length
of the string. It's the default value.
Found during testing of Bug 569800 (new JDT cleanup for this case).
Change-Id: I19679d43411eaa3c306e690b762d177a020c37a7
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | org.eclipse.tips.tests/src/org/eclipse/tips/manual/tests/Sleak.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.tips.tests/src/org/eclipse/tips/manual/tests/Sleak.java b/org.eclipse.tips.tests/src/org/eclipse/tips/manual/tests/Sleak.java index b23337945..93f0aa0e2 100644 --- a/org.eclipse.tips.tests/src/org/eclipse/tips/manual/tests/Sleak.java +++ b/org.eclipse.tips.tests/src/org/eclipse/tips/manual/tests/Sleak.java @@ -168,7 +168,7 @@ public class Sleak { if (index == -1) { return string; } - return string.substring(index + 1, string.length()); + return string.substring(index + 1); } void toggleStackTrace() { |