Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-03-19 09:19:43 +0000
committerAlexander Kurtakov2021-03-19 10:23:11 +0000
commitbf7f5c79a7d69f6babc596a1817d9f7552e2a92b (patch)
tree3aba1d2847a77ed058462b567d62cb34daabadd8
parent2ddd33c02a71b268107c512355667010b68f5992 (diff)
downloadeclipse.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.java2
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() {

Back to the top