Skip to content

Commit c4b29bf

Browse files
author
wcekan
committed
Move Include to package-info
1 parent 317bd43 commit c4b29bf

8 files changed

Lines changed: 5 additions & 15 deletions

File tree

elide-core/src/test/java/example/packageshareable/ContainerWithPackageShare.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66
package example.packageshareable;
77

8-
import com.yahoo.elide.annotation.Include;
9-
108
import java.util.Collection;
119

1210
import javax.persistence.Entity;
@@ -20,7 +18,6 @@
2018
* Container for ShareableWithPackageShare and UnshareableWithEntityUnshare.
2119
*/
2220
@Entity
23-
@Include(rootLevel = true)
2421
public class ContainerWithPackageShare {
2522
private long id;
2623
private Collection<UnshareableWithEntityUnshare> unshareableWithEntityUnshares;

elide-core/src/test/java/example/packageshareable/ShareableWithPackageShare.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66
package example.packageshareable;
77

8-
import com.yahoo.elide.annotation.Include;
9-
108
import javax.persistence.Entity;
119
import javax.persistence.FetchType;
1210
import javax.persistence.GeneratedValue;
@@ -18,7 +16,6 @@
1816
* Package level shareable bean.
1917
*/
2018
@Entity
21-
@Include(rootLevel = true)
2219
public class ShareableWithPackageShare {
2320
private long id;
2421
private ContainerWithPackageShare container;

elide-core/src/test/java/example/packageshareable/UnshareableWithEntityUnshare.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
package example.packageshareable;
77

8-
import com.yahoo.elide.annotation.Include;
98
import com.yahoo.elide.annotation.SharePermission;
109

1110
import javax.persistence.Entity;
@@ -20,7 +19,6 @@
2019
*/
2120
@Entity
2221
@SharePermission(sharable = false)
23-
@Include(rootLevel = true)
2422
public class UnshareableWithEntityUnshare {
2523
private long id;
2624
private ContainerWithPackageShare container;

elide-core/src/test/java/example/packageshareable/package-info.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See LICENSE file in project root for terms.
55
*/
66
@SharePermission
7+
@Include(rootLevel = true)
78
package example.packageshareable;
89

10+
import com.yahoo.elide.annotation.Include;
911
import com.yahoo.elide.annotation.SharePermission;

elide-example-models/src/main/java/com/yahoo/elide/models/generics/Employee.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
66

77
package com.yahoo.elide.models.generics;
88

9-
import com.yahoo.elide.annotation.Include;
10-
119
import javax.persistence.Entity;
1210

1311
/**
1412
* Helper class to test parameterized subclass/superclass hierarchies.
1513
*/
16-
@Include(rootLevel = true)
1714
@Entity
1815
public class Employee extends Peon<Manager> {
1916
}

elide-example-models/src/main/java/com/yahoo/elide/models/generics/Manager.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
66

77
package com.yahoo.elide.models.generics;
88

9-
import com.yahoo.elide.annotation.Include;
10-
119
import javax.persistence.Entity;
1210

1311
/**
1412
* Tests a parameterized superclass.
1513
*/
16-
@Include(rootLevel = true)
1714
@Entity
1815
public class Manager extends Overlord<Employee> {
1916
}

elide-example-models/src/main/java/com/yahoo/elide/models/generics/package-info.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
* See LICENSE file in project root for terms.
55
*/
66

7+
@Include(rootLevel = true)
78
@SharePermission
89
package com.yahoo.elide.models.generics;
910

11+
import com.yahoo.elide.annotation.Include;
1012
import com.yahoo.elide.annotation.SharePermission;

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@
501501
<plugin>
502502
<groupId>org.owasp</groupId>
503503
<artifactId>dependency-check-maven</artifactId>
504-
<version>5.3.2</version>
504+
<version>6.1.1</version>
505505
<configuration>
506506
<failBuildOnCVSS>7</failBuildOnCVSS>
507507
<skipSystemScope>true</skipSystemScope>

0 commit comments

Comments
 (0)