All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.codemods.OverridesMatchParentSynchronizationCodemod.description.md Maven / Gradle / Ivy

There is a newer version: 0.97.3
Show newest version
This change adds missing synchronized keyword to methods that override a synchronized method in the parent class.
Our changes look something like this:

```diff
  interface AcmeParent {
     synchronized void doThing();
  } 

  class AcmeChild implements AcmeParent {

    @Override
-    void doThing() {
+    synchronized void doThing() {
      thing();
    }
    
  }
```




© 2015 - 2024 Weber Informatics LLC | Privacy Policy