From c8de7dda19781061b909a03113a009700bbc2abd Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 31 Dec 2008 13:37:05 +0000 Subject: [PATCH] added the fast path. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14016 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/View.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/hudson/model/View.java b/core/src/main/java/hudson/model/View.java index d1aeb914af..01b8934093 100644 --- a/core/src/main/java/hudson/model/View.java +++ b/core/src/main/java/hudson/model/View.java @@ -111,6 +111,7 @@ public abstract class View extends AbstractModelObject implements AccessControll * Renames this view. */ public void rename(String newName) throws ParseException { + if(name.equals(newName)) return; // noop Hudson.checkGoodName(newName); String oldName = name; name = newName; -- GitLab