From 23841e8b34bd13cbd2e488c47714ff290914dce0 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Fri, 29 Jan 2010 12:38:59 +0100 Subject: [PATCH] http://ea.jetbrains.com/browser/ea_problems/18352 (IOE: PsiJavaParserFacadeImpl.createTypeInner) --- .../siyeh/ig/psiutils/CollectionUtils.java | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/CollectionUtils.java b/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/CollectionUtils.java index 773141d9a446..484a20e89eee 100644 --- a/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/CollectionUtils.java +++ b/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/CollectionUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2003-2009 Dave Griffith, Bas Leijdekkers + * Copyright 2003-2010 Dave Griffith, Bas Leijdekkers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -317,21 +317,16 @@ public class CollectionUtils{ } // constant empty arrays are ignored. return !isConstantEmptyArray(field); - } - public static String getInterfaceForClass(String name){ - final int paramStart = name.indexOf((int) '<'); - String baseName; - final String arg; - if(paramStart >= 0){ - baseName = name.substring(0, paramStart); - baseName = baseName.trim(); - arg = name.substring(paramStart); - } else{ + public static String getInterfaceForClass(String name) { + final int parameterStart = name.indexOf((int) '<'); + final String baseName; + if (parameterStart >= 0) { + baseName = name.substring(0, parameterStart).trim(); + } else { baseName = name; - arg = ""; } - return s_interfaceForCollection.get(baseName) + arg; + return s_interfaceForCollection.get(baseName); } } \ No newline at end of file