summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Hungershausen2018-06-09 10:04:23 -0400
committerJonas Hungershausen2018-06-11 04:35:08 -0400
commit1369ed9663d0457f2d578aa282f8d313bca2f7e4 (patch)
tree7ae705d1f2ce78fe758602b1117497da0bd7525b
parentc5634157c7edff6df694a2a3ff06a61cff67b81f (diff)
downloadeclipse.platform.text-1369ed9663d0457f2d578aa282f8d313bca2f7e4.tar.gz
eclipse.platform.text-1369ed9663d0457f2d578aa282f8d313bca2f7e4.tar.xz
eclipse.platform.text-1369ed9663d0457f2d578aa282f8d313bca2f7e4.zip
[Sonar] Remove dead stored variables
see https://sonar.eclipse.org/drilldown/issues/33533?rids%5B%5D=33537&rule=findbugs%3ADLS_DEAD_LOCAL_STORE&rule_sev=CRITICAL&severity=CRITICAL and https://sonar.eclipse.org/drilldown/issues/33533?rids%5B%5D=33535&rule=findbugs%3ADLS_DEAD_LOCAL_STORE&rule_sev=CRITICAL&severity=CRITICAL Change-Id: Ie17acc3f3eefb50f7fba564585f3e41947722168 Signed-off-by: Jonas Hungershausen <jonas.hungershausen@vogella.com>
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java3
-rw-r--r--org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java3
2 files changed, 2 insertions, 4 deletions
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java
index decf2092f..d4ed9abf6 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java
@@ -131,10 +131,9 @@ public abstract class AbstractUndoManagerTest {
private void doChange(IDocument document, int count) {
try {
- String before= document.get();
if (DEBUG)
- System.out.println(before);
+ System.out.println(document.get());
Position [] positions= new Position[count];
String [] strings= new String[count];
diff --git a/org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java b/org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java
index 4c82803bb..aa850e625 100644
--- a/org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java
+++ b/org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java
@@ -134,10 +134,9 @@ public class DocumentUndoManagerTest extends TestCase {
private void doChange(IDocument document, int count) {
try {
- String before= document.get();
if (DEBUG)
- System.out.println(before);
+ System.out.println(document.get());
Position[] positions= new Position[count];
String[] strings= new String[count];