From 81ddd039367c313d35e85a6d33b6fba59f24247a Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Fri, 3 Feb 2012 17:00:31 +0400 Subject: [PATCH] Cleanup --- python/src/com/jetbrains/python/psi/PyFunction.java | 2 +- .../src/com/jetbrains/python/psi/impl/PyFunctionImpl.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/src/com/jetbrains/python/psi/PyFunction.java b/python/src/com/jetbrains/python/psi/PyFunction.java index 2e7ddefce097..87d8689a12ad 100644 --- a/python/src/com/jetbrains/python/psi/PyFunction.java +++ b/python/src/com/jetbrains/python/psi/PyFunction.java @@ -52,7 +52,7 @@ extends @Nullable PyType getReturnTypeFromDocString(); - + @Nullable String getDocStringValue(); diff --git a/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java b/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java index 6a7fba37b020..8c076b52bf1d 100644 --- a/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java +++ b/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java @@ -314,7 +314,7 @@ public class PyFunctionImpl extends PyPresentableElementImpl imp PyReferenceExpression warningClass = callExpression.getArgument(1, PyReferenceExpression.class); if (warningClass != null && (PyNames.DEPRECATION_WARNING.equals(warningClass.getReferencedName()) || PyNames.PENDING_DEPRECATION_WARNING.equals(warningClass.getReferencedName()))) { - return PyUtil.strValue(callExpression.getArguments() [0]); + return PyUtil.strValue(callExpression.getArguments()[0]); } } } @@ -538,10 +538,10 @@ public class PyFunctionImpl extends PyPresentableElementImpl imp if (targetExpressionStub.getInitializerType() == PyTargetExpressionStub.InitializerType.CallExpression) { final PyQualifiedName qualifiedName = targetExpressionStub.getInitializer(); if (PyQualifiedName.fromComponents(PyNames.CLASSMETHOD).equals(qualifiedName)) { - return Modifier.CLASSMETHOD; + return CLASSMETHOD; } if (PyQualifiedName.fromComponents(PyNames.STATICMETHOD).equals(qualifiedName)) { - return Modifier.STATICMETHOD; + return STATICMETHOD; } } }