Skip to content

Commit 69cbb5f

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of ua/org.eclipse.ua.tests.doc
1 parent d6f478a commit 69cbb5f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

ua/org.eclipse.ua.tests.doc/src/org/eclipse/ua/tests/doc/internal/actions/LoadTocAction.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public void run() {
7878
}
7979

8080
public static void showErrors() {
81-
if (errors == null) return;
81+
if (errors == null) {
82+
return;
83+
}
8284
if (errors.isEmpty()) {
8385
reportStatus("Testing complete, no errors found");
8486
} else {
@@ -218,7 +220,9 @@ private void addTopic(ITopic nextTopic) {
218220
}
219221

220222
private boolean isFiltered(String href) {
221-
if (!href.startsWith("/")) return true;
223+
if (!href.startsWith("/")) {
224+
return true;
225+
}
222226
//if (href.startsWith("/org.eclipse.pde.doc.user/reference")) return true;
223227
//if (href.startsWith("/org.eclipse.platform.doc.isv/reference")) return true;
224228
//if (href.startsWith("/org.eclipse.platform.doc.isv/samples")) return true;

ua/org.eclipse.ua.tests.doc/src/org/eclipse/ua/tests/doc/internal/linkchecker/ApiDocTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,21 @@ static class InternalExtensionFinder extends DefaultHandler {
7373
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
7474
switch (state) {
7575
case 0:
76-
if ("element".equalsIgnoreCase(qName) && "extension".equals(attributes.getValue("name")))
76+
if ("element".equalsIgnoreCase(qName) && "extension".equals(attributes.getValue("name"))) {
7777
state = 1;
78+
}
7879
break;
7980

8081
case 1:
81-
if ("annotation".equalsIgnoreCase(qName))
82+
if ("annotation".equalsIgnoreCase(qName)) {
8283
state = 2;
84+
}
8385
break;
8486

8587
case 2:
86-
if ("appInfo".equalsIgnoreCase(qName))
88+
if ("appInfo".equalsIgnoreCase(qName)) {
8789
state = 3;
90+
}
8891
break;
8992

9093
case 3:

0 commit comments

Comments
 (0)