Optional shouldn't be constructable itself. It's purely a wrapper thing.
This commit is contained in:
parent
19173a7b97
commit
955d532264
|
@ -12,7 +12,11 @@ import java.lang.annotation.Target;
|
|||
* @author cpw
|
||||
*
|
||||
*/
|
||||
public interface Optional {
|
||||
public final class Optional {
|
||||
/**
|
||||
* Not constructable
|
||||
*/
|
||||
private Optional() {}
|
||||
/**
|
||||
* Used to remove optional interfaces
|
||||
* @author cpw
|
||||
|
|
Loading…
Reference in New Issue