Fix checkstyle violations

This commit is contained in:
Stephane Nicoll 2018-05-24 11:39:29 +02:00
parent 9f4f229b83
commit 8997143f31
2 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,8 @@ public class JerseyAutoConfiguration implements ServletContextAware {
private void resolveApplicationPath() {
if (StringUtils.hasLength(this.jersey.getApplicationPath())) {
this.path = parseApplicationPath(this.jersey.getApplicationPath());
} else {
}
else {
this.path = findApplicationPath(
AnnotationUtils.findAnnotation(this.config.getApplication().getClass(), ApplicationPath.class));
}

View File

@ -153,7 +153,6 @@ public class KafkaProperties {
* <p>
* This allows you to add additional properties, if necessary, and override the
* default kafkaConsumerFactory bean.
*
* @return the consumer properties initialized with the customizations defined
* on this instance
*/
@ -168,7 +167,6 @@ public class KafkaProperties {
* <p>
* This allows you to add additional properties, if necessary, and override the
* default kafkaProducerFactory bean.
*
* @return the producer properties initialized with the customizations defined
* on this instance
*/
@ -181,7 +179,8 @@ public class KafkaProperties {
private static String resourceToPath(Resource resource) {
try {
return resource.getFile().getAbsolutePath();
} catch (IOException ex) {
}
catch (IOException ex) {
throw new IllegalStateException("Resource '" + resource + "' must be on a file system", ex);
}
}