Skip to content

Commit

Permalink
Improve punctuation and naming
Browse files Browse the repository at this point in the history
  • Loading branch information
GierSmith authored Nov 13, 2023
1 parent cefe2b5 commit 42ba0ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -104,14 +104,14 @@ private Link verify(Link link) {

String uri = link.expand().getHref();

this.log.debug("Verifying link pointing to {}", uri);
this.log.debug("Verifying link pointing to {}...", uri);
this.restOperations.headForHeaders(uri);
this.log.debug("Successfully verified link!");

return link;

}
catch (RestClientException o_O) {
catch (RestClientException e) {

this.log.debug("Verification failed, marking as outdated!");
return null;
Expand All @@ -131,7 +131,7 @@ private Link discoverLink() {
URI uri = service.getUri();
String serviceId = service.getServiceId();

this.log.debug("Discovered {} system at {}. Discovering resource", serviceId, uri);
this.log.debug("Discovered {} system at {}. Discovering resource...", serviceId, uri);

Traverson traverson = new Traverson(uri, MediaTypes.HAL_JSON);
Link link = this.traversal.buildTraversal(traverson).asTemplatedLink();
Expand All @@ -141,10 +141,10 @@ private Link discoverLink() {
return link;

}
catch (RuntimeException o_O) {
catch (RuntimeException exception) {

this.link = null;
this.log.debug("Target system unavailable. Got: ", o_O.getMessage());
this.log.debug("Target system unavailable. Got: ", exception.getMessage());

return null;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -53,7 +53,7 @@ public ServiceInstance getServiceInstance() {
return instances.isEmpty() ? null : instances.get(0);

}
catch (RuntimeException o_O) {
catch (RuntimeException exception) {
return null;
}
}
Expand Down

0 comments on commit 42ba0ee

Please sign in to comment.