This is an automated email from the ASF dual-hosted git repository. shadow pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/logging-log4j-audit.git
commit 0c84ffe0b2df1738adc75a37f4d8782f91b8f7f0 Author: Andrei Ivanov <[email protected]> AuthorDate: Tue May 28 12:35:03 2019 +0300 Remove redundant modifiers --- .../test/java/org/apache/logging/log4j/audit/event/Transfer.java | 9 +++++---- .../org/apache/logging/log4j/catalog/api/ConstraintType.java | 2 +- .../log4j/catalog/api/annotation/ConditionOnPropertyExists.java | 6 +++--- .../org/apache/logging/log4j/catalog/api/annotation/JdbcUrl.java | 6 +++--- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/event/Transfer.java b/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/event/Transfer.java index 6f988d3..09f79ed 100644 --- a/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/event/Transfer.java +++ b/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/event/Transfer.java @@ -16,13 +16,14 @@ */ package org.apache.logging.log4j.audit.event; -import java.math.BigDecimal; import org.apache.logging.log4j.audit.AuditEvent; import org.apache.logging.log4j.audit.annotation.Constraint; import org.apache.logging.log4j.audit.annotation.MaxLength; import org.apache.logging.log4j.audit.annotation.RequestContext; import org.apache.logging.log4j.audit.annotation.Required; +import java.math.BigDecimal; + /** * Transfer between accounts * @author generated @@ -40,14 +41,14 @@ public interface Transfer extends AuditEvent { * @param amount Amount to transfer */ @Required - public void setAmount(BigDecimal amount); + void setAmount(BigDecimal amount); /** * From Account Number : Source of funds * @param fromAccount Source of funds */ @Required - public void setFromAccount(int fromAccount); + void setFromAccount(int fromAccount); /** * To Account Number : Destination account @@ -55,6 +56,6 @@ public interface Transfer extends AuditEvent { */ @Required @Constraint(constraintType="minValue", constraintValue="1") - public void setToAccount(int toAccount); + void setToAccount(int toAccount); } \ No newline at end of file diff --git a/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/ConstraintType.java b/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/ConstraintType.java index 962afd1..b2107ee 100644 --- a/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/ConstraintType.java +++ b/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/ConstraintType.java @@ -29,7 +29,7 @@ import org.apache.logging.log4j.core.config.plugins.Plugin; @JsonSerialize(using = ConstraintTypeSerializer.class) public interface ConstraintType { - public static final String CATEGORY = "Constraint"; + String CATEGORY = "Constraint"; default String getName() { Plugin annotation = this.getClass().getAnnotation(Plugin.class); diff --git a/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/annotation/ConditionOnPropertyExists.java b/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/annotation/ConditionOnPropertyExists.java index ae88ebf..4c38ebe 100644 --- a/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/annotation/ConditionOnPropertyExists.java +++ b/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/annotation/ConditionOnPropertyExists.java @@ -15,13 +15,13 @@ */ package org.apache.logging.log4j.catalog.api.annotation; +import org.springframework.context.annotation.Conditional; + import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import org.springframework.context.annotation.Conditional; - /** * Prevents a bean from being created unless a property exists. */ @@ -33,5 +33,5 @@ public @interface ConditionOnPropertyExists { * The name of the property to test for existence. * @return The property name. */ - public String value(); + String value(); } diff --git a/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/annotation/JdbcUrl.java b/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/annotation/JdbcUrl.java index 3e3fe4c..5a5f6cb 100644 --- a/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/annotation/JdbcUrl.java +++ b/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/annotation/JdbcUrl.java @@ -15,13 +15,13 @@ */ package org.apache.logging.log4j.catalog.api.annotation; +import org.springframework.context.annotation.Conditional; + import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import org.springframework.context.annotation.Conditional; - /** * Loads a DataSource based on the JDBC URL. */ @@ -33,5 +33,5 @@ public @interface JdbcUrl { * The name of the property to test for existence. * @return The property name. */ - public String value(); + String value(); }
