mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
coverage: don't escape whitespaces (IDEA-171506)
This commit is contained in:
@@ -11,7 +11,7 @@ public abstract class CoverageListener {
|
||||
final char ch = fileName.charAt(i);
|
||||
|
||||
if (ch > 0 && ch < 255) {
|
||||
if (Character.isLetterOrDigit(ch)) {
|
||||
if (Character.isJavaIdentifierPart(ch) || ch == ' ' || ch == '@' || ch == '-') {
|
||||
result.append(ch);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -501,7 +501,7 @@ public class JavaCoverageEngine extends CoverageEngine {
|
||||
} else {
|
||||
String className = testName;
|
||||
while (lastIdx > 0) {
|
||||
className = className.substring(0, lastIdx - 1);
|
||||
className = className.substring(0, lastIdx);
|
||||
psiClass = facade.findClass(StringUtil.getPackageName(className, '_').replaceAll("\\_", "\\."), projectScope);
|
||||
lastIdx = className.lastIndexOf("_");
|
||||
if (psiClass != null) {
|
||||
|
||||
Reference in New Issue
Block a user