From 4beda48cf85d992fcd31117504be2e6bc485cb40 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Thu, 13 Apr 2017 20:04:30 +0300 Subject: [PATCH] IDEABKL-7547 Decompiler fails to rename class which consists of digits only --- .../java/decompiler/modules/renamer/ConverterHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/modules/renamer/ConverterHelper.java b/src/org/jetbrains/java/decompiler/modules/renamer/ConverterHelper.java index 71dc351..4625fe7 100644 --- a/src/org/jetbrains/java/decompiler/modules/renamer/ConverterHelper.java +++ b/src/org/jetbrains/java/decompiler/modules/renamer/ConverterHelper.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,7 +55,7 @@ public class ConverterHelper implements IIdentifierRenamer { } int index = 0; - while (Character.isDigit(shortName.charAt(index))) { + while (index < shortName.length() && Character.isDigit(shortName.charAt(index))) { index++; }