Merge branch 'pr-1322'

This commit is contained in:
Andreas Dangel
2018-09-11 14:05:54 +02:00
13 changed files with 263 additions and 104 deletions

View File

@ -4,13 +4,14 @@
package net.sourceforge.pmd.lang.ecmascript;
import java.util.Objects;
import org.mozilla.javascript.Context;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.lang.ParserOptions;
import net.sourceforge.pmd.properties.BooleanProperty;
import net.sourceforge.pmd.properties.EnumeratedProperty;
import net.sourceforge.pmd.util.StringUtil;
public class EcmascriptParserOptions extends ParserOptions {
@ -120,7 +121,7 @@ public class EcmascriptParserOptions extends ParserOptions {
return false;
}
final EcmascriptParserOptions that = (EcmascriptParserOptions) obj;
return StringUtil.isSame(this.suppressMarker, that.suppressMarker, false, false, false)
return Objects.equals(this.suppressMarker, that.suppressMarker)
&& this.recordingComments == that.recordingComments
&& this.recordingLocalJsDocComments == that.recordingLocalJsDocComments
&& this.rhinoLanguageVersion == that.rhinoLanguageVersion;