Skip to content

Commit

Permalink
[GEOT-6833] Add missing @OverRide annotations to build/*
Browse files Browse the repository at this point in the history
  • Loading branch information
groldan authored and aaime committed Mar 8, 2021
1 parent 99a89da commit 5c184fc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public class JarCollector extends AbstractMojo {
*
* @throws MojoExecutionException if the plugin execution failed.
*/
@Override
public void execute() throws MojoExecutionException {
/*
* Gets the parent "target" directory.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public class JJTreeJavaCC extends AbstractMojo {
*
* @throws MojoExecutionException if the plugin execution failed.
*/
@Override
@SuppressWarnings("PMD.SystemPrintln")
public void execute() throws MojoExecutionException, MojoFailureException {
// if not windows, don't rewrite file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ protected XSDSchema schema() {
//add a schema locator which uses the xsd objects to get at the schemas
XSDSchemaLocator locator = new XSDSchemaLocator() {

@Override
public XSDSchema locateSchema(XSDSchema schema, String namespaceURI,
String rawSchemaLocationURI, String resolvedSchemaLocationURI) {

Expand All @@ -326,7 +327,8 @@ public XSDSchema locateSchema(XSDSchema schema, String namespaceURI,
//add a location resolver which checks the schema source directory
XSDSchemaLocationResolver locationResolver = new XSDSchemaLocationResolver() {

public String resolveSchemaLocation(
@Override
public String resolveSchemaLocation(
XSDSchema schema, String namespaceURI, String schemaLocation
) {

Expand Down Expand Up @@ -376,7 +378,8 @@ public String resolveSchemaLocation(
if (relativeSchemaReference) {
xsdSchema = Schemas.parse(schemaLocation.getAbsolutePath(), Collections.emptyList(),
Collections.singletonList(new XSDSchemaLocationResolver() {
public String resolveSchemaLocation(XSDSchema xsdSchema,
@Override
public String resolveSchemaLocation(XSDSchema xsdSchema,
String namespaceURI, String schemaLocationURI) {
try {
URI contextUri = new URI(xsdSchema.getSchemaLocation());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public class BindingGeneratorMojo extends AbstractGeneratorMojo {
*/
String simpleBindingBaseClass;

@Override
public void execute() throws MojoExecutionException, MojoFailureException {

XSDSchema xsdSchema = schema();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ public List<AttributeType> sort() {
final List<AttributeType> sorted = new ArrayList<>();
GraphWalker walker = new GraphWalker() {

public int visit(Graphable element, GraphTraversal traversal) {
@Override
public int visit(Graphable element, GraphTraversal traversal) {
AttributeType type = (AttributeType) element.getObject();

//only add if in this schema
Expand All @@ -470,7 +471,8 @@ public int visit(Graphable element, GraphTraversal traversal) {
return GraphTraversal.CONTINUE;
}

public void finish() { }
@Override
public void finish() { }
};

GraphTraversal traversal =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public class SchemaGeneratorMojo extends AbstractGeneratorMojo {
*/
boolean cyclicTypeSupport;

public void execute() throws MojoExecutionException, MojoFailureException {
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
XSDSchema schema = schema();
if ( schema == null )
return;
Expand Down

0 comments on commit 5c184fc

Please sign in to comment.