return getIssues(auth, query);
}
private List<RadarIssue> getIssues(UserCredentials userCredentials, IssueQuery query) {
try{
SonarClient client;
if(userCredentials == null) {
client = SonarClient.create(serverUrl);
}else{
client=SonarClient.builder().url(serverUrl).login(userCredentials.getUsername()).password(PassEncoder.decodeAsString(userCredentials.getPassword())).build();
}
IssueClient issueClient = client.issueClient();
List<RadarIssue> issues=new LinkedList<>();
Map<String, Rule> rulesCache=new HashMap<>();
Issues result;
int pageIndex=1;
do{