com.liferay.source.formatter.checkstyle.check.UnicodePropertiesBuilderCheck Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.source.formatter.checkstyle.check;
import com.liferay.portal.kernel.util.ListUtil;
import com.puppycrawl.tools.checkstyle.api.DetailAST;
import java.util.List;
/**
* @author Hugo Huijser
*/
public class UnicodePropertiesBuilderCheck extends BaseBuilderCheck {
@Override
protected boolean allowNullValues() {
return false;
}
@Override
protected List
doGetBuilderInformationList() {
return ListUtil.fromArray(
new BaseBuilderCheck.BuilderInformation(
"UnicodeProperties", "UnicodePropertiesBuilder", "fastLoad",
"load", "put", "putAll", "setProperty"));
}
@Override
protected String getAssignClassName(DetailAST assignDetailAST) {
return getNewInstanceTypeName(assignDetailAST);
}
@Override
protected List getSupportsFunctionMethodNames() {
return ListUtil.fromArray("put");
}
@Override
protected boolean isSupportsNestedMethodCalls() {
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy