Skip to content
Permalink
Browse files
Format & javadocs update
  • Loading branch information
dspavlov committed Apr 15, 2019
1 parent da6489b commit 76a866dbfc516f224d841c2bd68a48c2e9b0dba7
Showing 3 changed files with 12 additions and 14 deletions.
@@ -49,8 +49,8 @@ public class GitHubConfig implements IGitHubConfig {
private Properties props;

/**
* Prefer branches contributions. If null or false then PRs have priority.
* If set to true that means branch scanning preformed more often, and default triggering option is branch.
* Prefer branches contributions. If null or false then PRs have priority. If set to true that means branch scanning
* preformed more often, and default triggering option is branch.
*/
@Nullable
private Boolean preferBranches;
@@ -100,7 +100,7 @@ public GitHubConfig code(String code) {
return null;

return PasswordEncoder.decode(encAuth);
}
}

/** {@inheritDoc} */
@Override public String gitApiUrl() {
@@ -113,11 +113,12 @@ public GitHubConfig code(String code) {

}

@Override
public boolean isPreferBranches() {
/** {@inheritDoc} */
@Override public boolean isPreferBranches() {
return Boolean.TRUE.equals(preferBranches);
}

/** {@inheritDoc} */
@Override public String code() {
return code;
}
@@ -16,7 +16,6 @@
*/
package org.apache.ignite.ci.tcbot.conf;

import java.util.Properties;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@@ -38,14 +38,13 @@ public class JiraServerConfig implements IJiraServerConfig {
private String projectCode;

/**
* Branch number prefix. Optional, if not present {@link #projectCode}-NNNNN is searched.<br>
* But if branch has different enumeration, this prefix will be searched instead.<br>
* If specified, that meant tickets maching branches have another identification.<br>
* For exaple some ticket having ID {@link #projectCode}-N1 will be commented, but a branch will be identified using
* {@link #branchNumPrefix}N2 with another number.<br><br>
* Branch number prefix. Optional, if not present {@link #projectCode}-NNNNN is searched.<br> But if branch has
* different enumeration, this prefix will be searched instead.<br> If specified, that meant tickets maching
* branches have another identification.<br> For exaple some ticket having ID {@link #projectCode}-N1 will be
* commented, but a branch will be identified using {@link #branchNumPrefix}N2 with another number.<br><br>
*
* Search of branches will be performed using data in JIRA ticket fields for
* {@link #projectCode}-N1, fields are listed in {@link Ticket} class.
* Search of branches will be performed using data in JIRA ticket fields for {@link #projectCode}-N1, fields are
* listed in {@link Ticket} class.
*/
private String branchNumPrefix;

@@ -117,7 +116,6 @@ public JiraServerConfig code(String code) {
return Strings.emptyToNull(branchNumPrefix);
}


/** {@inheritDoc} */
@Nullable
@Override

0 comments on commit 76a866d

Please sign in to comment.