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
- Host: GitHub
- URL: https://github.com/walkmod/walkmod-override-plugin
- Owner: walkmod
- Created: 2015-09-01T15:38:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T18:59:31.000Z (about 9 years ago)
- Last Synced: 2024-05-28T17:34:04.880Z (about 2 years ago)
- Language: Java
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.asciidoc
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.