Get rid of accidental String#toString()
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Sat, 6 Aug 2016 18:39:40 +0000 (21:39 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Mon, 8 Aug 2016 12:42:45 +0000 (15:42 +0300)
that appeared there as a result of the ancient refactoring.

python/src/com/jetbrains/python/documentation/docstrings/SectionBasedDocString.java

index 0d44ba7209d7093575f096e02c2231baff32398b..98864714787595c8c223d402a12029f0b1dd5e18 100644 (file)
@@ -17,10 +17,8 @@ package com.jetbrains.python.documentation.docstrings;
 
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
-import com.intellij.openapi.util.Condition;
 import com.intellij.openapi.util.Pair;
 import com.intellij.openapi.util.text.StringUtil;
-import com.intellij.util.Function;
 import com.intellij.util.containers.ContainerUtil;
 import com.jetbrains.python.PyNames;
 import com.jetbrains.python.psi.PyIndentUtil;
@@ -260,7 +258,7 @@ public abstract class SectionBasedDocString extends DocStringLineParser implemen
   }
 
   protected boolean isValidName(@NotNull String name) {
-    return PyNames.isIdentifierString(name.toString());
+    return PyNames.isIdentifierString(name);
   }
 
   /**