Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -531,34 +531,6 @@ protected void setThreadPoolCoreSize(int threadPoolCoreSize) {
this.threadPoolCoreSize = threadPoolCoreSize;
}

/**
* @deprecated use {@link #getThreadNameFormat()}
*/
@Deprecated
public String getThreadNamePrefix() {
if (this.threadNameFormat != null && this.threadNameFormat.endsWith(THREAD_INDEX_FORMAT)) {
/*
* Try to return the old-style threadNamePrefix
*/
return this.threadNameFormat.substring(0, this.threadNameFormat.length() - THREAD_INDEX_FORMAT.length());
}
/*
* Otherwise, just default to return the regular format
*/
return threadNameFormat;
}

/**
* This is the old way to customize thread names.
*
* @param threadNamePrefix
* @deprecated use {@link #setThreadNameFormat(String)} instead.
*/
@Deprecated
public void setThreadNamePrefix(String threadNamePrefix) {
setThreadNameFormat(threadNamePrefix + THREAD_INDEX_FORMAT);
}

public String getThreadNameFormat() {
return threadNameFormat;
}
Expand Down