forked from WorksApplications/findbugs-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50b9537
commit 9cd2a17
Showing
8 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/test/java/jp/co/worksap/oss/findbugs/jpa/GetterWithLongLengthAndLob.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package jp.co.worksap.oss.findbugs.jpa; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Lob; | ||
|
||
public class GetterWithLongLengthAndLob { | ||
private String name; | ||
|
||
@Lob | ||
@Column(length = 10000) | ||
public String getName() { | ||
return name; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/test/java/jp/co/worksap/oss/findbugs/jpa/GetterWithTooLongLength.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package jp.co.worksap.oss.findbugs.jpa; | ||
|
||
import javax.persistence.Column; | ||
|
||
public class GetterWithTooLongLength { | ||
private String name; | ||
|
||
@Column(length = 10000) | ||
public String getName() { | ||
return name; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/test/java/jp/co/worksap/oss/findbugs/jpa/GetterWithoutElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package jp.co.worksap.oss.findbugs.jpa; | ||
|
||
import javax.persistence.Column; | ||
|
||
public class GetterWithoutElement { | ||
private String name; | ||
|
||
@Column | ||
public String getName() { | ||
return name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/java/jp/co/worksap/oss/findbugs/jpa/NullableBooleanGetter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package jp.co.worksap.oss.findbugs.jpa; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
|
||
@Entity | ||
public class NullableBooleanGetter { | ||
private boolean booleanValue; | ||
|
||
@Column(nullable = true) | ||
public boolean isBooleanValue() { | ||
return booleanValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/test/java/jp/co/worksap/oss/findbugs/jsr305/MutableClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters