Fix CodeStyle API usage

This commit is contained in:
Rustam Vishnyakov
2017-11-22 15:27:14 +03:00
parent 509ff922eb
commit a7f0b40547
@@ -449,7 +449,7 @@ public class CodeStyleManagerImpl extends CodeStyleManager implements Formatting
return false;
}
*/
if (getSettings().KEEP_FIRST_COLUMN_COMMENT && isCommentToken(element)) {
if (getSettings().getCommonSettings(file.getLanguage()).KEEP_FIRST_COLUMN_COMMENT && isCommentToken(element)) {
if (IndentHelper.getInstance().getIndent(myProject, file.getFileType(), element, true) == 0) {
return false;
}