Skip to content

Commit 32358d8

Browse files
committed
[feature/nro-profile] Miscellaneous syntax fixes.
1 parent 9da6539 commit 32358d8

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/main/java/net/apnic/rdap/conformance/Application.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ public static void main(final String[] args) throws Exception {
619619

620620
executorService.shutdown();
621621

622-
if(contexts.hasFailedResult()) {
622+
if (contexts.hasFailedResult()) {
623623
System.exit(EX_FAILURE);
624624
}
625625
}

src/main/java/net/apnic/rdap/conformance/Context.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ public Specification getSpecification() {
141141
*
142142
* @return True of false if this context has a failed result
143143
*/
144-
public boolean hasFailedResult()
145-
{
146-
for(Result res: results)
147-
{
148-
if(res.isStatus(Result.Status.Failure)) {
144+
public boolean hasFailedResult() {
145+
for (Result res: results) {
146+
if (res.isStatus(Result.Status.Failure)) {
149147
return true;
150148
}
151149
}

src/main/java/net/apnic/rdap/conformance/ContextList.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ public class ContextList
2020
*
2121
* @return boolean if at least one Context has a failed result.
2222
*/
23-
public boolean hasFailedResult()
24-
{
25-
for(Context context : this)
26-
{
27-
if(context.hasFailedResult()) {
23+
public boolean hasFailedResult() {
24+
for (Context context : this) {
25+
if (context.hasFailedResult()) {
2826
return true;
2927
}
3028
}

0 commit comments

Comments
 (0)