Skip to content

Commit 3fd5cfe

Browse files
committed
[JENKINS-36144] More verbose function name
1 parent 3c81c4d commit 3fd5cfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/cloudbees/jenkins/GitHubPushTrigger.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void onPost() {
7575
public void onPost(String triggeredByUser) {
7676
final String pushBy = triggeredByUser;
7777
DescriptorImpl d = getDescriptor();
78-
d.checkThreadPoolSize();
78+
d.checkThreadPoolSizeAndUpdateIfNecessary();
7979
d.queue.execute(new Runnable() {
8080
private boolean runPolling() {
8181
try {
@@ -245,14 +245,14 @@ public static class DescriptorImpl extends TriggerDescriptor {
245245
private transient int maximumThreads = Integer.MIN_VALUE;
246246

247247
public DescriptorImpl() {
248-
checkThreadPoolSize();
248+
checkThreadPoolSizeAndUpdateIfNecessary();
249249
}
250250

251251
/**
252252
* Update the {@link java.util.concurrent.ExecutorService} instance.
253253
*/
254254
/*package*/
255-
synchronized void checkThreadPoolSize() {
255+
synchronized void checkThreadPoolSizeAndUpdateIfNecessary() {
256256
if (scmTrigger != null) {
257257
int count = scmTrigger.getPollingThreadCount();
258258
if (maximumThreads != count) {

0 commit comments

Comments
 (0)