aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-06-05 06:26:39 -0400
committerAlexander Kurtakov2018-06-05 07:22:38 -0400
commit8bf091702f454c70a3aa7cfb947b83ca6cc9f11c (patch)
tree0cf8d9efb9700ce23e0d4b69ac4cc2ac54dcf76e
parentdcdb889ff8f78e8568e659a21afe719064f32787 (diff)
downloadorg.eclipse.linuxtools-8bf091702f454c70a3aa7cfb947b83ca6cc9f11c.zip
org.eclipse.linuxtools-8bf091702f454c70a3aa7cfb947b83ca6cc9f11c.tar.gz
org.eclipse.linuxtools-8bf091702f454c70a3aa7cfb947b83ca6cc9f11c.tar.xz
gcov: Remove useless semicolon too.
And a bit further save action automation - remove trailing whitespaces. Change-Id: I6fc55db64a6ff31e76ca5eb465be82e5ec769a96 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/123986
-rw-r--r--gcov/org.eclipse.linuxtools.gcov.core/.settings/org.eclipse.jdt.ui.prefs2
-rw-r--r--gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/CovManager.java8
2 files changed, 5 insertions, 5 deletions
diff --git a/gcov/org.eclipse.linuxtools.gcov.core/.settings/org.eclipse.jdt.ui.prefs b/gcov/org.eclipse.linuxtools.gcov.core/.settings/org.eclipse.jdt.ui.prefs
index 82ad6a7..e009377 100644
--- a/gcov/org.eclipse.linuxtools.gcov.core/.settings/org.eclipse.jdt.ui.prefs
+++ b/gcov/org.eclipse.linuxtools.gcov.core/.settings/org.eclipse.jdt.ui.prefs
@@ -36,7 +36,7 @@ sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
sp_cleanup.remove_private_constructors=true
sp_cleanup.remove_redundant_modifiers=true
sp_cleanup.remove_redundant_type_arguments=true
-sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces=true
sp_cleanup.remove_trailing_whitespaces_all=true
sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
sp_cleanup.remove_unnecessary_casts=true
diff --git a/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/CovManager.java b/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/CovManager.java
index 5faea1a..5549f61 100644
--- a/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/CovManager.java
+++ b/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/CovManager.java
@@ -1,6 +1,6 @@
/*******************************************************************************
* Copyright (c) 2009, 2018 STMicroelectronics and others.
- *
+ *
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -93,11 +93,11 @@ public class CovManager implements Serializable {
* Constructor
* @param binaryPath
*/
- public CovManager(String binaryPath)
+ public CovManager(String binaryPath)
{
this(binaryPath, null);
//FIXME EK-LINUXTOOLS: Need project for finding local STRINGS etc.
- this.project = STSymbolManager.sharedInstance.getProjectFromFile(new Path(binaryPath));;
+ this.project = STSymbolManager.sharedInstance.getProjectFromFile(new Path(binaryPath));
}
/**
@@ -270,7 +270,7 @@ public class CovManager implements Serializable {
if (winOSType.equals("")) { //$NON-NLS-1$
try {
Process process = Runtime.getRuntime().exec(new String[] {"sh", "-c", "echo $OSTYPE"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-
+
String firstLine = null;
try (BufferedReader stdout = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
firstLine = stdout.readLine();