Fix checkstyle violations

pull/13438/head
Stephane Nicoll 7 years ago
parent 9f4f229b83
commit 8997143f31

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

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

Loading…
Cancel
Save