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

de.jball.sonar.l10n.java.rules.squid.AvoidJalo_java.html Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version

This rule detects usage of Jalo classes. The Jalo layer is deprecated and should not be used.

Noncompliant Code Example

	MyItem myItem = new MyItem();
	MyItem myItem = modelService.getSource(myItemModel);
	MyItemModel myItemModel = modelService.get(myItem);

Compliant Solution

	MyItemModel myItem = modelService.create(MyItemModel.class);
	MyItemModel myItem = Mockito.mock(MyItemModel.class); // for Test-Code.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy