Checkstyle fixes

This commit is contained in:
Andreas Dangel
2014-11-17 21:45:37 +01:00
parent fbe6742666
commit e86341bf8e
11 changed files with 203 additions and 122 deletions

View File

@@ -4,36 +4,36 @@
package net.sourceforge.pmd.lang;
/**
* Represents a set of configuration options for a {@link Parser}. For each
* Represents a set of configuration options for a {@link Parser}. For each
* unique combination of ParserOptions a Parser will be used to create an AST.
* Therefore, implementations must implement {@link Object#equals(Object)}
* and {@link Object#hashCode()}.
* Therefore, implementations must implement {@link Object#equals(Object)} and
* {@link Object#hashCode()}.
*/
public class ParserOptions {
protected String suppressMarker;
public String getSuppressMarker() {
return suppressMarker;
return suppressMarker;
}
public void setSuppressMarker(String suppressMarker) {
this.suppressMarker = suppressMarker;
this.suppressMarker = suppressMarker;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
final ParserOptions that = (ParserOptions) obj;
return this.suppressMarker.equals(that.suppressMarker);
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
final ParserOptions that = (ParserOptions) obj;
return this.suppressMarker.equals(that.suppressMarker);
}
@Override
public int hashCode() {
return suppressMarker != null ? suppressMarker.hashCode() : 0;
return suppressMarker != null ? suppressMarker.hashCode() : 0;
}
}