Moves boolean properties to is* rather than get* to follow java bean properties.

This commit is contained in:
Spencer Gibb
2018-03-20 22:40:19 -04:00
parent fffbb644cb
commit 882d6a5aef
4 changed files with 6 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ public class JGitEnvironmentProperties extends AbstractScmAccessorProperties {
setDefaultLabel(DEFAULT_LABEL);
}
public boolean getCloneOnStart() {
public boolean isCloneOnStart() {
return cloneOnStart;
}
@@ -41,7 +41,7 @@ public class JGitEnvironmentProperties extends AbstractScmAccessorProperties {
this.cloneOnStart = cloneOnStart;
}
public boolean getForcePull() {
public boolean isForcePull() {
return forcePull;
}

View File

@@ -124,9 +124,9 @@ public class JGitEnvironmentRepository extends AbstractScmEnvironmentRepository
public JGitEnvironmentRepository(ConfigurableEnvironment environment, JGitEnvironmentProperties properties) {
super(environment, properties);
this.cloneOnStart = properties.getCloneOnStart();
this.cloneOnStart = properties.isCloneOnStart();
this.defaultLabel = properties.getDefaultLabel();
this.forcePull = properties.getForcePull();
this.forcePull = properties.isForcePull();
this.timeout = properties.getTimeout();
this.deleteUntrackedBranches = properties.isDeleteUntrackedBranches();
}

View File

@@ -92,7 +92,7 @@ public abstract class AbstractScmAccessor implements ResourceLoaderAware {
this.passphrase = properties.getPassphrase();
this.password = properties.getPassword();
this.searchPaths = properties.getSearchPaths();
this.strictHostKeyChecking = properties.getStrictHostKeyChecking();
this.strictHostKeyChecking = properties.isStrictHostKeyChecking();
this.uri = properties.getUri();
this.username = properties.getUsername();
}

View File

@@ -83,7 +83,7 @@ public class AbstractScmAccessorProperties implements EnvironmentRepositoryPrope
this.passphrase = passphrase;
}
public boolean getStrictHostKeyChecking() {
public boolean isStrictHostKeyChecking() {
return strictHostKeyChecking;
}