
de.jball.sonar.l10n.java.rules.squid.AvoidJalo_java.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-hybris Show documentation
Show all versions of sonar-hybris Show documentation
SonarQube Rules for Hybris
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