Skip to content

Commit 498d83b

Browse files
committed
Use sealed classes where possible
1 parent d20dda9 commit 498d83b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java-compiler-testing/src/main/java/io/github/ascopes/jct/workspaces/impl/AbstractManagedDirectory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
* @author Ashley Scopes
4444
* @since 0.0.1
4545
*/
46-
public abstract class AbstractManagedDirectory implements ManagedDirectory {
46+
public abstract sealed class AbstractManagedDirectory
47+
implements ManagedDirectory
48+
permits RamDirectoryImpl, TempDirectoryImpl {
4749

4850
private final String name;
4951
private final Path rootDirectory;

0 commit comments

Comments
 (0)