Skip to content

Commit 1c7f4ef

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of ant/org.eclipse.ant.tests.ui
1 parent d73fb95 commit 1c7f4ef

32 files changed

+107
-101
lines changed

ant/org.eclipse.ant.tests.ui/Ant Debug Tests/org/eclipse/ant/tests/ui/debug/AbstractAntDebugTest.java

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static void teardownClass() {
9898

9999
/**
100100
* Sets the last relevant event set
101-
*
101+
*
102102
* @param set
103103
* event set
104104
*/
@@ -108,7 +108,7 @@ protected void setEventSet(DebugEvent[] set) {
108108

109109
/**
110110
* Returns the last relevant event set
111-
*
111+
*
112112
* @return event set
113113
*/
114114
protected DebugEvent[] getEventSet() {
@@ -117,7 +117,7 @@ protected DebugEvent[] getEventSet() {
117117

118118
/**
119119
* Returns the breakpoint manager
120-
*
120+
*
121121
* @return breakpoint manager
122122
*/
123123
protected IBreakpointManager getBreakpointManager() {
@@ -126,7 +126,7 @@ protected IBreakpointManager getBreakpointManager() {
126126

127127
/**
128128
* Returns the source folder with the given name in the given project.
129-
*
129+
*
130130
* @param name
131131
* source folder name
132132
* @return package fragment root
@@ -159,7 +159,7 @@ protected IHyperlink getHyperlink(int offset, IDocument doc) {
159159
/**
160160
* Launches the given configuration and waits for an event. Returns the source of the event. If the event is not received, the launch is
161161
* terminated and an exception is thrown.
162-
*
162+
*
163163
* @param configuration
164164
* the configuration to launch
165165
* @param waiter
@@ -174,7 +174,7 @@ protected Object launchAndWait(ILaunchConfiguration configuration, DebugEventWai
174174
/**
175175
* Launches the given configuration and waits for an event. Returns the source of the event. If the event is not received, the launch is
176176
* terminated and an exception is thrown.
177-
*
177+
*
178178
* @param configuration
179179
* the configuration to launch
180180
* @param waiter
@@ -205,7 +205,7 @@ protected Object launchAndWait(ILaunchConfiguration configuration, DebugEventWai
205205
/**
206206
* Launches the build file with the given name, and waits for a suspend event in that program. Returns the thread in which the suspend event
207207
* occurred.
208-
*
208+
*
209209
* @param buildFileName
210210
* the build file to launch
211211
* @return thread in which the first suspend event occurred
@@ -219,7 +219,7 @@ protected AntThread launchAndSuspend(String buildFileName) throws Exception {
219219
/**
220220
* Launches the given configuration in debug mode, and waits for a suspend event in that program. Returns the thread in which the suspend event
221221
* occurred.
222-
*
222+
*
223223
* @param config
224224
* the configuration to launch
225225
* @return thread in which the first suspend event occurred
@@ -234,7 +234,7 @@ protected AntThread launchAndSuspend(ILaunchConfiguration config) throws Excepti
234234
/**
235235
* Launches the build file with the given name, and waits for a breakpoint-caused suspend event in that program. Returns the thread in which the
236236
* suspend event occurred.
237-
*
237+
*
238238
* @param buildFileName
239239
* the build file to launch
240240
* @return thread in which the first suspend event occurred
@@ -246,7 +246,7 @@ protected AntThread launchToBreakpoint(String buildFileName) throws Exception {
246246
/**
247247
* Launches the build file with the given name in a separate VM, and waits for a breakpoint-caused suspend event in that program. Returns the
248248
* thread in which the suspend event occurred.
249-
*
249+
*
250250
* @param buildFileName
251251
* the build file to launch
252252
* @return thread in which the first suspend event occurred
@@ -258,7 +258,7 @@ protected AntThread launchToBreakpointSepVM(String buildFileName) throws Excepti
258258
/**
259259
* Launches the build file with the given name, and waits for a breakpoint-caused suspend event in that program. Returns the thread in which the
260260
* suspend event occurred.
261-
*
261+
*
262262
* @param buildFileName
263263
* the build file to launch
264264
* @param register
@@ -277,7 +277,7 @@ protected AntThread launchToBreakpoint(String buildFileName, boolean register, b
277277
/**
278278
* Launches the given configuration in debug mode, and waits for a breakpoint-caused suspend event in that program. Returns the thread in which
279279
* the suspend event occurred.
280-
*
280+
*
281281
* @param config
282282
* the configuration to launch
283283
* @return thread in which the first suspend event occurred
@@ -289,7 +289,7 @@ protected AntThread launchToBreakpoint(ILaunchConfiguration config) throws CoreE
289289
/**
290290
* Launches the given configuration in debug mode, and waits for a breakpoint-caused suspend event in that program. Returns the thread in which
291291
* the suspend event occurred.
292-
*
292+
*
293293
* @param config
294294
* the configuration to launch
295295
* @param register
@@ -308,7 +308,7 @@ protected AntThread launchToBreakpoint(ILaunchConfiguration config, boolean regi
308308
/**
309309
* Launches the build file with the given name, and waits for a terminate event in that program. Returns the debug target in which the suspend
310310
* event occurred.
311-
*
311+
*
312312
* @param buildFileName
313313
* the build file to execute
314314
* @return debug target in which the terminate event occurred
@@ -329,7 +329,7 @@ protected AntDebugTarget launchAndTerminate(String buildFileName, boolean sepVM)
329329
/**
330330
* Launches the given configuration in debug mode, and waits for a terminate event in that program. Returns the debug target in which the
331331
* terminate event occurred.
332-
*
332+
*
333333
* @param config
334334
* the configuration to launch
335335
* @param timeout
@@ -351,7 +351,7 @@ protected AntDebugTarget debugLaunchAndTerminate(ILaunchConfiguration config, in
351351
/**
352352
* Launches the build file with the given name, and waits for a line breakpoint suspend event in that program. Returns the thread in which the
353353
* suspend event occurred.
354-
*
354+
*
355355
* @param buildFileName
356356
* the build file to execute
357357
* @param bp
@@ -367,7 +367,7 @@ protected AntThread launchToLineBreakpoint(String buildFileName, ILineBreakpoint
367367
/**
368368
* Launches the given configuration in debug mode, and waits for a line breakpoint suspend event in that program. Returns the thread in which the
369369
* suspend event occurred.
370-
*
370+
*
371371
* @param config
372372
* the configuration to launch
373373
* @param bp
@@ -395,7 +395,7 @@ protected AntThread launchToLineBreakpoint(ILaunchConfiguration config, ILineBre
395395

396396
/**
397397
* Resumes the given thread, and waits for another breakpoint-caused suspend event. Returns the thread in which the suspend event occurs.
398-
*
398+
*
399399
* @param thread
400400
* thread to resume
401401
* @return thread in which the first suspend event occurs
@@ -406,7 +406,7 @@ protected AntThread resume(AntThread thread) throws Exception {
406406

407407
/**
408408
* Resumes the given thread, and waits for another breakpoint-caused suspend event. Returns the thread in which the suspend event occurs.
409-
*
409+
*
410410
* @param thread
411411
* thread to resume
412412
* @param timeout
@@ -430,7 +430,7 @@ protected AntThread resume(AntThread thread, int timeout) throws Exception {
430430
/**
431431
* Resumes the given thread, and waits for a suspend event caused by the specified line breakpoint. Returns the thread in which the suspend event
432432
* occurs.
433-
*
433+
*
434434
* @param resumeThread
435435
* thread to resume
436436
* @return thread in which the first suspend event occurs
@@ -462,7 +462,7 @@ protected AntThread resumeToLineBreakpoint(AntThread resumeThread, ILineBreakpoi
462462

463463
/**
464464
* Resumes the given thread, and waits for the debug target to terminate (i.e. finish/exit the program).
465-
*
465+
*
466466
* @param thread
467467
* thread to resume
468468
*/
@@ -479,7 +479,7 @@ protected void exit(AntThread thread) throws Exception {
479479

480480
/**
481481
* Resumes the given thread, and waits for the associated debug target to terminate.
482-
*
482+
*
483483
* @param thread
484484
* thread to resume
485485
* @return the terminated debug target
@@ -511,7 +511,7 @@ protected IResource getBreakpointResource(String typeName) throws Exception {
511511

512512
/**
513513
* Creates and returns a line breakpoint at the given line number in the given build file
514-
*
514+
*
515515
* @param lineNumber
516516
* line number
517517
* @param file
@@ -523,7 +523,7 @@ protected AntLineBreakpoint createLineBreakpoint(int lineNumber, IFile file) thr
523523

524524
/**
525525
* Creates and returns a line breakpoint at the given line number in the given build file.
526-
*
526+
*
527527
* @param lineNumber
528528
* line number
529529
* @param buildFileName
@@ -544,7 +544,7 @@ protected void terminateAndRemove(AntThread thread) throws CoreException {
544544

545545
/**
546546
* Terminates the given debug target and removes its launch.
547-
*
547+
*
548548
* NOTE: all breakpoints are removed, all threads are resumed, and then the target is terminated. This avoids defunct processes on linux.
549549
*/
550550
protected void terminateAndRemove(AntDebugTarget debugTarget) throws CoreException {
@@ -588,7 +588,7 @@ protected void removeAllBreakpoints() throws CoreException {
588588

589589
/**
590590
* Returns the first breakpoint the given thread is suspended at, or <code>null</code> if none.
591-
*
591+
*
592592
* @return the first breakpoint the given thread is suspended at, or <code>null</code> if none
593593
*/
594594
protected IBreakpoint getBreakpoint(IThread thread) {
@@ -601,7 +601,7 @@ protected IBreakpoint getBreakpoint(IThread thread) {
601601

602602
/**
603603
* Performs a step over in the given stack frame and returns when complete.
604-
*
604+
*
605605
* @param frame
606606
* stack frame to step in
607607
*/
@@ -621,7 +621,7 @@ protected AntThread stepOver(AntStackFrame frame) throws DebugException {
621621

622622
/**
623623
* Performs a step over in the given stack frame and expects to hit a breakpoint as part of the step over
624-
*
624+
*
625625
* @param frame
626626
* stack frame to step in
627627
*/
@@ -641,7 +641,7 @@ protected AntThread stepOverToHitBreakpoint(AntStackFrame frame) throws DebugExc
641641

642642
/**
643643
* Performs a step into in the given stack frame and returns when complete.
644-
*
644+
*
645645
* @param frame
646646
* stack frame to step in
647647
*/
@@ -661,7 +661,7 @@ protected AntThread stepInto(AntStackFrame frame) throws DebugException {
661661

662662
/**
663663
* Performs a step return in the given stack frame and returns when complete.
664-
*
664+
*
665665
* @param frame
666666
* stack frame to step return from
667667
*/
@@ -681,7 +681,7 @@ protected AntThread stepReturn(AntStackFrame frame) throws DebugException {
681681

682682
/**
683683
* Performs a step into with filters in the given stack frame and returns when complete.
684-
*
684+
*
685685
* @param frame
686686
* stack frame to step in
687687
*/
@@ -709,7 +709,7 @@ protected AntThread stepIntoWithFilters(AntStackFrame frame) throws DebugExcepti
709709

710710
/**
711711
* Performs a step return with filters in the given stack frame and returns when complete.
712-
*
712+
*
713713
* @param frame
714714
* stack frame to step in
715715
*/
@@ -737,7 +737,7 @@ protected AntThread stepReturnWithFilters(AntStackFrame frame) throws DebugExcep
737737

738738
/**
739739
* Performs a step over with filters in the given stack frame and returns when complete.
740-
*
740+
*
741741
* @param frame
742742
* stack frame to step in
743743
*/
@@ -765,7 +765,7 @@ protected AntThread stepOverWithFilters(AntStackFrame frame) throws DebugExcepti
765765

766766
/**
767767
* Returns the compilation unit with the given name.
768-
*
768+
*
769769
* @param project
770770
* the project containing the CU
771771
* @param root
@@ -784,7 +784,7 @@ protected ICompilationUnit getCompilationUnit(IJavaProject project, String root,
784784

785785
/**
786786
* Sets the current set of Debug / Other preferences to use during each test
787-
*
787+
*
788788
* @since 3.5
789789
*/
790790
protected void setPreferences() {

ant/org.eclipse.ant.tests.ui/Ant Debug Tests/org/eclipse/ant/tests/ui/debug/DebugElementEventWaiter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* IBM Corporation - initial API and implementation
1313
*******************************************************************************/

ant/org.eclipse.ant.tests.ui/Ant Debug Tests/org/eclipse/ant/tests/ui/debug/DebugElementKindEventDetailWaiter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* IBM Corporation - initial API and implementation
1313
*******************************************************************************/

ant/org.eclipse.ant.tests.ui/Ant Debug Tests/org/eclipse/ant/tests/ui/debug/RunToLineTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void testRunToLineHitBreakpointSepVM() throws Exception {
130130
/**
131131
* Runs to the given line number in the 'breakpoints.xml' buildfile, after
132132
* stopping at the Starts from line 5 in the buildfile.
133-
*
133+
*
134134
* @param lineNumber line number to run to, ONE BASED
135135
* @param expectedLineNumber the line number to be on after run-to-line (may
136136
* differ from the target line number if the option to

ant/org.eclipse.ant.tests.ui/Ant Debug Tests/org/eclipse/ant/tests/ui/debug/TestAgainException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* Exception to indicate a test should be run again when it fails.
18-
*
18+
*
1919
* @since 3.8
2020
*/
2121
public class TestAgainException extends RuntimeException {

ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/dtd/dumper.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*******************************************************************************
22
* Copyright (c) 2002, 2013 Object Factory Inc.
33
*
4-
* This program and the accompanying materials
4+
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* Object Factory Inc. - Initial implementation
1313
* IBM Corporation - bug fixing
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* This class is intended to be used from the command line (hence the uncapitalized class name).
34-
*
34+
*
3535
* @author Bob Foster
3636
*/
3737
@SuppressWarnings("restriction")
@@ -81,17 +81,17 @@ private static void dumpSchema(ISchema schema) {
8181

8282
/**
8383
* Dump dfm as a series of states.
84-
*
84+
*
8585
* <pre>
8686
* {@code
87-
* S0 a=>S1 b=>S2
87+
* S0 a=>S1 b=>S2
8888
* S1 c=>S2
8989
* S2* d=>S2
9090
* }
9191
* </pre>
92-
*
92+
*
9393
* Where * indicates accepting state.
94-
*
94+
*
9595
* @param dfm
9696
* to dump
9797
*/

0 commit comments

Comments
 (0)