https://github.com/walkmod/walkmod-serializable-plugin
walkmod plugin to ensure Java serialization conventions
https://github.com/walkmod/walkmod-serializable-plugin
Last synced: 5 months ago
JSON representation
walkmod plugin to ensure Java serialization conventions
- Host: GitHub
- URL: https://github.com/walkmod/walkmod-serializable-plugin
- Owner: walkmod
- Created: 2015-12-21T09:10:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-08T12:16:40.000Z (over 10 years ago)
- Last Synced: 2024-05-28T17:34:06.048Z (about 2 years ago)
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
Awesome Lists containing this project
README
walkmod-serializable-plugin
===========================
Raquel Pau
This is a walkmod plugin to add `implements java.io.Serializable` in all Java classes (root and nested).
== Example
Let's see an example. Take a look to this code. This is a class that does not implement Serializable
```java
package example;
public class Foo{
void hello(){
...
}
}
```
What this plugins generates is the following modified code:
```java
package example;
public class Foo implements java.io.Serializable{
void hello(){
...
}
}
```
== Usage
=== Only for walkmod >= 2.2.0
In order to add this code transformation as part of your code conventions, execute:
----
walkmod add serializable
----
And then you see the results executing the following command:
$ walkmod apply
Or, alternativelt, you can also check which would be the modified classes typing:
$ walkmod check
== 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.