style: final

This commit is contained in:
Ciilu 2025-09-20 12:48:33 +08:00
parent c38371f454
commit 715252f26a
No known key found for this signature in database
4 changed files with 8 additions and 8 deletions

View File

@ -77,7 +77,7 @@ public final class HMCLModpackProvider implements ModpackProvider {
return manifest; return manifest;
} }
private static class HMCLModpack extends Modpack { private final static class HMCLModpack extends Modpack {
@Override @Override
public Task<?> getInstallTask(DefaultDependencyManager dependencyManager, Path zipFile, String name) { public Task<?> getInstallTask(DefaultDependencyManager dependencyManager, Path zipFile, String name) {
return new HMCLModpackInstallTask(((HMCLGameRepository) dependencyManager.getGameRepository()).getProfile(), zipFile, this, name); return new HMCLModpackInstallTask(((HMCLGameRepository) dependencyManager.getGameRepository()).getProfile(), zipFile, this, name);

View File

@ -191,7 +191,7 @@ public class RipplerContainer extends StackPane {
return StyleableProperties.FACTORY.getCssMetaData(); return StyleableProperties.FACTORY.getCssMetaData();
} }
private static class StyleableProperties { private final static class StyleableProperties {
private static final StyleablePropertyFactory<RipplerContainer> FACTORY = new StyleablePropertyFactory<>(StackPane.getClassCssMetaData()); private static final StyleablePropertyFactory<RipplerContainer> FACTORY = new StyleablePropertyFactory<>(StackPane.getClassCssMetaData());
private static final CssMetaData<RipplerContainer, Paint> RIPPLER_FILL = FACTORY.createPaintCssMetaData("-jfx-rippler-fill", s -> s.ripplerFill, Color.rgb(0, 200, 255)); private static final CssMetaData<RipplerContainer, Paint> RIPPLER_FILL = FACTORY.createPaintCssMetaData("-jfx-rippler-fill", s -> s.ripplerFill, Color.rgb(0, 200, 255));

View File

@ -225,7 +225,7 @@ public class TabHeader extends Control implements TabControl, PageAware {
} }
} }
private class HeadersRegion extends StackPane { private final class HeadersRegion extends StackPane {
private SideAction action; private SideAction action;
private final ObjectProperty<Side> side = new SimpleObjectProperty<Side>() { private final ObjectProperty<Side> side = new SimpleObjectProperty<Side>() {
@Override @Override
@ -379,7 +379,7 @@ public class TabHeader extends Control implements TabControl, PageAware {
} }
} }
private class Top extends Horizontal { private final class Top extends Horizontal {
@Override @Override
public void layoutChildren() { public void layoutChildren() {
super.layoutChildren(); super.layoutChildren();
@ -404,7 +404,7 @@ public class TabHeader extends Control implements TabControl, PageAware {
} }
} }
private class Bottom extends Horizontal { private final class Bottom extends Horizontal {
@Override @Override
public void layoutChildren() { public void layoutChildren() {
super.layoutChildren(); super.layoutChildren();
@ -519,7 +519,7 @@ public class TabHeader extends Control implements TabControl, PageAware {
} }
} }
private class Left extends Vertical { private final class Left extends Vertical {
@Override @Override
public void layoutChildren() { public void layoutChildren() {
super.layoutChildren(); super.layoutChildren();
@ -543,7 +543,7 @@ public class TabHeader extends Control implements TabControl, PageAware {
} }
} }
private class Right extends Vertical { private final class Right extends Vertical {
@Override @Override
public void layoutChildren() { public void layoutChildren() {
super.layoutChildren(); super.layoutChildren();

View File

@ -47,7 +47,7 @@
</module> </module>
<!-- Classes --> <!-- Classes -->
<!-- <module name="FinalClass"/> --> <!-- class with only private constructor must be final: http://checkstyle.sourceforge.net/config_design.html#FinalClass --> <module name="FinalClass"/> <!-- class with only private constructor must be final: http://checkstyle.sourceforge.net/config_design.html#FinalClass -->
<module name="SimplifyBooleanReturn"/> <!-- directly return boolean does not check and return http://checkstyle.sourceforge.net/config_design.html#SimplifyBooleanReturn --> <module name="SimplifyBooleanReturn"/> <!-- directly return boolean does not check and return http://checkstyle.sourceforge.net/config_design.html#SimplifyBooleanReturn -->
<module name="StringLiteralEquality"/> <!-- you can't write myString == "this" http://checkstyle.sourceforge.net/config_design.html#StringLiteralEquality --> <module name="StringLiteralEquality"/> <!-- you can't write myString == "this" http://checkstyle.sourceforge.net/config_design.html#StringLiteralEquality -->
<module name="OneTopLevelClass"/> <!-- only one root class per file http://checkstyle.sourceforge.net/config_design.html#OneTopLevelClass --> <module name="OneTopLevelClass"/> <!-- only one root class per file http://checkstyle.sourceforge.net/config_design.html#OneTopLevelClass -->