Remove redundant modifiers
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 @@
* @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 @@
*/
@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 @@
@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 @@
* 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 @@
* The name of the property to test for existence.
* @return The property name.
*/
- public String value();
+ String value();
}