mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
allow empty package prefix for jsr45 configuration
This commit is contained in:
@@ -229,7 +229,10 @@ public abstract class JSR45PositionManager<Scope> implements PositionManager {
|
||||
final String prefix = generatedClassesPackage.replace('.', File.separatorChar);
|
||||
|
||||
if (sourcePath.startsWith(prefix)) {
|
||||
sourcePath = sourcePath.substring(prefix.length() + 1);
|
||||
sourcePath = sourcePath.substring(prefix.length());
|
||||
if (sourcePath.startsWith(File.separator)) {
|
||||
sourcePath = sourcePath.substring(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user