diff options
author | Eugene Tarassov | 2013-06-21 18:19:01 +0000 |
---|---|---|
committer | Eugene Tarassov | 2013-06-21 18:19:01 +0000 |
commit | dbc940779799060018e918f4ac57c2b44c67cf7b (patch) | |
tree | e86468c22542be982ee0b8ee032c358175668afa | |
parent | b1c908a208dc81a70bf731c41554dfc8cd9ae94c (diff) | |
download | org.eclipse.tcf-dbc940779799060018e918f4ac57c2b44c67cf7b.tar.gz org.eclipse.tcf-dbc940779799060018e918f4ac57c2b44c67cf7b.tar.xz org.eclipse.tcf-dbc940779799060018e918f4ac57c2b44c67cf7b.zip |
TCF Debugger: code cleanup
2 files changed, 12 insertions, 5 deletions
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/TCFBreakpointStatusListener.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/TCFBreakpointStatusListener.java index 1be998e00..a1af6a7c7 100644 --- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/TCFBreakpointStatusListener.java +++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/TCFBreakpointStatusListener.java @@ -128,7 +128,8 @@ class TCFBreakpointStatusListener { else if (!ok && installed.get(id) == cbp) { installed.remove(id); decrementInstallCount(cbp); - } else { + } + else { updateTCFStamp(cbp); } } @@ -172,7 +173,9 @@ class TCFBreakpointStatusListener { cbp.incrementInstallCount(); doUpdateTCFStamp(cbp); } - catch (CoreException e) {} // ignore expected race condition with marker deletion + catch (CoreException e) { + // ignore expected race condition with marker deletion + } return Status.OK_STATUS; } }; @@ -191,7 +194,9 @@ class TCFBreakpointStatusListener { cbp.decrementInstallCount(); doUpdateTCFStamp(cbp); } - catch (CoreException e) {} // ignore expected race condition with marker deletion + catch (CoreException e) { + // ignore expected race condition with marker deletion + } return Status.OK_STATUS; } }; @@ -209,7 +214,9 @@ class TCFBreakpointStatusListener { try { doUpdateTCFStamp(cbp); } - catch (CoreException e) {} // ignore expected race condition with marker deletion + catch (CoreException e) { + // ignore expected race condition with marker deletion + } return Status.OK_STATUS; } }; diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/ElfLoader.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/ElfLoader.java index 043682617..0353787cd 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/ElfLoader.java +++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/ElfLoader.java @@ -57,7 +57,7 @@ public class ElfLoader implements Runnable { private List<Throwable> errors = new ArrayList<Throwable>(); - private final IRunControl.RunControlListener rc_listener= new IRunControl.RunControlListener() { + private final IRunControl.RunControlListener rc_listener = new IRunControl.RunControlListener() { @Override public void contextSuspended(String id, String pc, String reason, Map<String, Object> params) { running.remove(id); |