提交 95c8e715 编写于 作者: J Josh Soref

String.equals(null) is fast enough...

上级 7e08108e
......@@ -43,7 +43,7 @@ public class CliCrumbExclusion extends CrumbExclusion {
@Override
public boolean process(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
String pathInfo = request.getPathInfo();
if (pathInfo != null && "/cli".equals(pathInfo)) {
if ("/cli".equals(pathInfo)) {
chain.doFilter(request, response);
return true;
}
......
......@@ -327,7 +327,7 @@ public class ArtifactArchiver extends Recorder implements SimpleBuildStep {
return FormValidation.ok();
}
// defensive approach to remain case sensitive in doubtful situations
boolean bCaseSensitive = caseSensitive == null || !"false".equals(caseSensitive);
boolean bCaseSensitive = !"false".equals(caseSensitive);
return FilePath.validateFileMask(project.getSomeWorkspace(), value, bCaseSensitive);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册