Skip to content

Commit 010e33d

Browse files
author
Faisal Hameed
committed
Fixing squid:S2333 - Redundant modifiers should not be used.
1 parent 8f09292 commit 010e33d

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

activejdbc/src/main/java/org/javalite/activejdbc/annotations/BelongsTo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
@Retention(RetentionPolicy.RUNTIME)
3232
@Target(ElementType.TYPE)
3333
public @interface BelongsTo {
34-
public Class<? extends Model> parent();
35-
public String foreignKeyName();
34+
Class<? extends Model> parent();
35+
String foreignKeyName();
3636
}

activejdbc/src/main/java/org/javalite/activejdbc/annotations/BelongsToParents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
@Retention(RetentionPolicy.RUNTIME)
1212
@Target(ElementType.TYPE)
1313
public @interface BelongsToParents {
14-
public BelongsTo[] value();
14+
BelongsTo[] value();
1515
}
1616

activejdbc/src/main/java/org/javalite/activejdbc/annotations/BelongsToPolymorphic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
* List of parent classes.
3737
* @return list of parent classes.
3838
*/
39-
public abstract Class<? extends Model>[] parents();
39+
Class<? extends Model>[] parents();
4040

4141
/**
4242
* List of type labels corresponding to parent classes. This is a value to be stored in the
4343
* "parent_type" column of the child record. Use this to override default behavior (parent full class name).
4444
*
4545
* @return list of type labels corresponding to parent classes.
4646
*/
47-
public String[] typeLabels() default {};
47+
String[] typeLabels() default {};
4848
}

activejdbc/src/main/java/org/javalite/activejdbc/annotations/DbName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
@Retention(RetentionPolicy.RUNTIME)
2929
@Target(ElementType.TYPE)
3030
public @interface DbName {
31-
public String value();
31+
String value();
3232
}

activejdbc/src/main/java/org/javalite/activejdbc/annotations/IdGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
@Retention(RetentionPolicy.RUNTIME)
2929
@Target(ElementType.TYPE)
3030
public @interface IdGenerator {
31-
public String value();
31+
String value();
3232
}

activejdbc/src/main/java/org/javalite/activejdbc/annotations/IdName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
@Retention(RetentionPolicy.RUNTIME)
3030
@Target(ElementType.TYPE)
3131
public @interface IdName {
32-
public String value();
32+
String value();
3333
}

activejdbc/src/main/java/org/javalite/activejdbc/annotations/Many2Many.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@
3737
/**
3838
* This is a type of a model that is the "other" end of the relationship.
3939
*/
40-
public Class<? extends Model> other();
40+
Class<? extends Model> other();
4141

4242
/**
4343
* Name of a table used for joining records from other tables.
4444
*/
45-
public String join() ;
45+
String join() ;
4646

4747
/**
4848
* Foreign key name of a source table in the join. A "source" table is a table that backs the model
4949
* on which this annotation is used.
5050
*/
51-
public String sourceFKName();
51+
String sourceFKName();
5252

5353
/**
5454
* Foreign key name of a target table in the join table. A "target" table is a table that backs the "other" model.
5555
*/
56-
public String targetFKName();
56+
String targetFKName();
5757
}
5858

activejdbc/src/main/java/org/javalite/activejdbc/annotations/Table.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
@Retention(RetentionPolicy.RUNTIME)
3030
@Target(ElementType.TYPE)
3131
public @interface Table {
32-
public String value();
32+
String value();
3333

3434
}

activejdbc/src/main/java/org/javalite/activejdbc/annotations/VersionColumn.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
@Retention(RetentionPolicy.RUNTIME)
1212
@Target(ElementType.TYPE)
1313
public @interface VersionColumn {
14-
public String value();
14+
String value();
1515
}

0 commit comments

Comments
 (0)