IDEABKL-7547 Decompiler fails to rename class which consists of digits only

This commit is contained in:
Egor.Ushakov
2017-04-13 20:04:30 +03:00
parent fdf34d9be2
commit 4beda48cf8

View File

@@ -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++;
}