Skip to content

Commit a1720e4

Browse files
committed
deal with nested classes
1 parent 41c4951 commit a1720e4

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

sdk/src/main/java/io/opentdf/platform/sdk/Autoconfigure.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class RuleType {
5454
* This class includes functionality to create granter instances based on
5555
* attributes either from a list of attribute values or from a service.
5656
*/
57-
class Autoconfigure {
57+
public class Autoconfigure {
5858

5959
private static Logger logger = LoggerFactory.getLogger(Autoconfigure.class);
6060

sdk/src/main/java/io/opentdf/platform/sdk/TDF.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* TDF objects, as well as utility functions to handle cryptographic
3232
* operations and configurations.
3333
*/
34-
class TDF {
34+
public class TDF {
3535

3636
private static byte[] tdfECKeySaltCompute() {
3737
byte[] salt;

sdk/src/test/java/io/opentdf/platform/sdk/PublicApiSurfaceTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,12 @@ private static Set<JavaClass> computeReachable(JavaClasses classes) {
114114
if (!reachable.add(c)) continue;
115115

116116
// Superclass and interfaces are part of the API surface of c.
117-
c.getRawSuperclass().ifPresent(work::push);
117+
c.getRawSuperclass().ifPresent(ec -> addAllRawTypes(c, work, queued));
118118
work.addAll(c.getRawInterfaces());
119119

120+
// if you are exposed then your enclosing class should be as well
121+
c.getEnclosingClass().ifPresent(ec -> addAllRawTypes(ec, work, queued));
122+
120123
for (JavaMethod m : c.getMethods()) {
121124
if (!isExposed(m.getModifiers())) continue;
122125
addAllRawTypes(m.getReturnType(), work, queued);

0 commit comments

Comments
 (0)