An open API service indexing awesome lists of open source software.

https://github.com/walkmod/walkmod-override-plugin

puts the @override annotation whenever it is necessary
https://github.com/walkmod/walkmod-override-plugin

Last synced: 5 months ago
JSON representation

puts the @override annotation whenever it is necessary

Awesome Lists containing this project

README

          

walkmod-override-plugin
=======================
Raquel Pau

This is a walkmod plugin to add the override annotation in Java methods whenever it is necessary
(when a given class implements an interface or defines a method that belongs to its superclass).

== Example
Let's see an example. From this code, which is a class with its typical `toString` implementation.

```java
package example;

public class Foo{

public String toString(){
...
}
}
```

It is transformed to :
```java
package example;

public class Foo{

@Override
public String toString(){
...
}
}
```

== Usage

=== Only Walkmod >= 2.2.0

Just type:

----
walkmod add override
----
and then, to see the results:

----
walkmod apply
----

== Contributing

If you want to hack on this, fork it, improve it and send me a pull request.

To get started using it, just clone it and call mvn install.