Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

clover fails when providing javax validations inside Optional

Sameer Sood
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2017

Following example fails clover.

unexpected token: Optional

 

Problem with Clover?

 

Optional<@Size(max = 50) @Pattern(regexp = "^[ A-Za-z0-9'./&,-]*$") String> myfield();

 

1 answer

0 votes
Grzegorz Lewandowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2017

Hey, Clover doesn't support Java 8 annotations in all places. More details are available here. Note, Clover was recently open sourced and the feature won't be delivered in any new version of Atlassian Clover.  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events