diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingConfig.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingConfig.java index 6c38b96bf..ad43a0078 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingConfig.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingConfig.java @@ -89,7 +89,8 @@ List getEnhancers() { for (String e_name : items) { Class clazz = ClassLoader.getSystemClassLoader().loadClass(e_name); if (LoggingEnhancer.class.isAssignableFrom(clazz)) { - LoggingEnhancer enhancer = (LoggingEnhancer)clazz.getDeclaredConstructor().newInstance(); + LoggingEnhancer enhancer = + (LoggingEnhancer) clazz.getDeclaredConstructor().newInstance(); enhancers.add(enhancer); } } diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/SourceLocation.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/SourceLocation.java index df9126687..5a3277b17 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/SourceLocation.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/SourceLocation.java @@ -158,9 +158,9 @@ static SourceLocation fromPb(LogEntrySourceLocation sourceLocationPb) { } /** - * Creates instance of {@link SourceLocation} based on stack trace information. Caller should - * provide the level in the stack where the information can be located. The stack trace level - * should be {@code 0} to display information for the caller of the method. + * Creates a new instance of {@link SourceLocation} based on stack trace information. A caller + * should provide the level in the stack where the information can be located. The stack trace + * level should be {@code 0} to display information for the caller of the method. * * @param level Zero-based non-negative integer defining the level in the stack trace where {@code * 0} is topmost element.