mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Replace use of Spring's ClassUtils
This commit is contained in:
parent
51a0e66ab6
commit
658df7968e
1 changed files with 6 additions and 3 deletions
|
@ -17,11 +17,14 @@
|
|||
|
||||
package bisq.desktop.common.view;
|
||||
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
public class DefaultPathConvention implements FxmlView.PathConvention {
|
||||
|
||||
/**
|
||||
* Convert a '.'-based fully-qualified name of {@code viewClass} to a '/'-based
|
||||
* resource path suffixed with ".fxml".
|
||||
*/
|
||||
@Override
|
||||
public String apply(Class<? extends View> viewClass) {
|
||||
return ClassUtils.convertClassNameToResourcePath(viewClass.getName()).concat(".fxml");
|
||||
return viewClass.getName().replace('.', '/').concat(".fxml");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue