style: 为 checkstyle 添加了 RegexpSingleline 规则 (#7156)
This commit is contained in:
1 parent
2f17995955
commit
fdc3500cc4
5 files changed
+11
-4
No files matched your search
@@ -324,7 +324,7 @@ public class AddonUpdatesPage extends BorderPane implements DecoratorPage {
|
|||||||
LOG.warning("Failed to load addon icons", e);
|
LOG.warning("Failed to load addon icons", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.localAddonFile() instanceof ResourcePackFile resourcePackFile) {
|
if (data.localAddonFile() instanceof ResourcePackFile resourcePackFile) {
|
||||||
Image image = resourcePackFile.loadIcon();
|
Image image = resourcePackFile.loadIcon();
|
||||||
|
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ public final class JavaManagementPage extends ListPageBase<JavaRuntime> {
|
|||||||
|
|
||||||
if (oldItem != item) {
|
if (oldItem != item) {
|
||||||
content.getTags().clear();
|
content.getTags().clear();
|
||||||
content.addTag(item.getArchitecture().getDisplayName());
|
content.addTag(item.getArchitecture().getDisplayName());
|
||||||
}
|
}
|
||||||
|
|
||||||
SVG newRemoveIcon = item.isManaged() ? SVG.DELETE_FOREVER : SVG.DELETE;
|
SVG newRemoveIcon = item.isManaged() ? SVG.DELETE_FOREVER : SVG.DELETE;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import static org.jackhuang.hmcl.util.logging.Logger.LOG;
|
|||||||
* @author huangyuhui
|
* @author huangyuhui
|
||||||
*/
|
*/
|
||||||
public final class GameAssetDownloadTask extends Task<Void> {
|
public final class GameAssetDownloadTask extends Task<Void> {
|
||||||
|
|
||||||
private final AbstractDependencyManager dependencyManager;
|
private final AbstractDependencyManager dependencyManager;
|
||||||
private final GameInstanceManifest manifest;
|
private final GameInstanceManifest manifest;
|
||||||
private final AssetIndexInfo assetIndexInfo;
|
private final AssetIndexInfo assetIndexInfo;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import java.util.concurrent.Callable;
|
|||||||
*/
|
*/
|
||||||
public interface ExceptionalSupplier<R, E extends Exception> {
|
public interface ExceptionalSupplier<R, E extends Exception> {
|
||||||
R get() throws E;
|
R get() throws E;
|
||||||
|
|
||||||
default Callable<R> toCallable() {
|
default Callable<R> toCallable() {
|
||||||
return this::get;
|
return this::get;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,13 @@
|
|||||||
<property name="max" value="2000"/>
|
<property name="max" value="2000"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
<module name="RegexpSingleline">
|
||||||
|
<property name="format" value="\s+$"/>
|
||||||
|
<property name="minimum" value="0"/>
|
||||||
|
<property name="maximum" value="0"/>
|
||||||
|
<property name="message" value="Line has trailing whitespace."/>
|
||||||
|
</module>
|
||||||
|
|
||||||
<module name="TreeWalker">
|
<module name="TreeWalker">
|
||||||
<module name="SuppressionCommentFilter"/> <!-- use //CHECKSTYLE:OFF (...) //CHECKSTYLE:ON to disable checkstyle: http://checkstyle.sourceforge.net/config_filters.html#SuppressionCommentFilter -->
|
<module name="SuppressionCommentFilter"/> <!-- use //CHECKSTYLE:OFF (...) //CHECKSTYLE:ON to disable checkstyle: http://checkstyle.sourceforge.net/config_filters.html#SuppressionCommentFilter -->
|
||||||
<module name="SuppressionXpathSingleFilter">
|
<module name="SuppressionXpathSingleFilter">
|
||||||
|
|||||||
Reference in new issue
Block a user