Skip to content

Commit

Permalink
Add final modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenporras authored Aug 14, 2023
1 parent a79e311 commit 3ca45a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import java.util.Map;

import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.LogManager;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
Expand Down Expand Up @@ -62,7 +62,7 @@ public final class BuiltInTypeModelAccess {
/**
* The singleton instance.
*/
private static class InstanceHolder {
private static final class InstanceHolder {
// Initialize-on-demand holder pattern.
@SuppressWarnings("PMD.AccessorClassGeneration")
// This is a common idiom, and PMD even says to use it, see http://pmd.sourceforge.net/pmd-5.1.0/rules/java/design.html, Rule NonThreadSafeSingleton
Expand Down

0 comments on commit 3ca45a6

Please sign in to comment.