Moves boolean properties to is* rather than get* to follow java bean properties.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ public class AbstractScmAccessorProperties implements EnvironmentRepositoryPrope
|
||||
this.passphrase = passphrase;
|
||||
}
|
||||
|
||||
public boolean getStrictHostKeyChecking() {
|
||||
public boolean isStrictHostKeyChecking() {
|
||||
return strictHostKeyChecking;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user