Intellij idea 设置代码格式,使其与自己的小节子句对齐 目前正在使用IntelliJ 2018.2.3。

Intellij idea 设置代码格式,使其与自己的小节子句对齐 目前正在使用IntelliJ 2018.2.3。,intellij-idea,code-standards,Intellij Idea,Code Standards,应选中/取消选中代码样式(或其他任何地方)中的哪些选项以实现以下行为 预期行为: @Override public boolean equals(Object other) { return other == this // short circuit if same object || (other instanceof UniquePersonList // instanceof handles nulls &&

应选中/取消选中代码样式(或其他任何地方)中的哪些选项以实现以下行为

预期行为:

@Override
public boolean equals(Object other) {
    return other == this // short circuit if same object
            || (other instanceof UniquePersonList // instanceof handles nulls
               && this.internalList.equals(((UniquePersonList) other).internalList)); <--
}
@覆盖
公共布尔等于(对象其他){
返回other==此//同一对象短路
||(UniquePersonList的其他instanceof//句柄的instanceof为空

&&this.internalList.equals(((UniquePersonList)other.internalList));尝试代码风格| Java |换行和大括号|二进制表达式|在多行时对齐

@Override
public boolean equals(Object other) {
    return other == this // short circuit if same object
            || (other instanceof UniquePersonList // instanceof handles nulls
            && this.internalList.equals(((UniquePersonList) other).internalList)); <--
}