Fix checkstyle issues reported by odlparent-3.0.0's checkstyle
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / repo / SharedSchemaContextFactory.java
index 0ce69cfbd26e98d531ecf50c91c1023a6da0adcf..415d20aafb3e83ac0ec34f3b516ed41d43d6d832 100644 (file)
@@ -50,8 +50,8 @@ import org.slf4j.LoggerFactory;
 final class SharedSchemaContextFactory implements SchemaContextFactory {
     private static final Logger LOG = LoggerFactory.getLogger(SharedSchemaContextFactory.class);
 
-    private final Cache<Collection<SourceIdentifier>, SchemaContext> cache = CacheBuilder.newBuilder().weakValues()
-            .build();
+    private final Cache<Collection<SourceIdentifier>, SchemaContext> revisionCache = CacheBuilder.newBuilder()
+            .weakValues().build();
     private final Cache<Collection<SourceIdentifier>, SchemaContext> semVerCache = CacheBuilder.newBuilder()
             .weakValues().build();
     private final SharedSchemaRepository repository;
@@ -69,7 +69,7 @@ final class SharedSchemaContextFactory implements SchemaContextFactory {
     public ListenableFuture<SchemaContext> createSchemaContext(final Collection<SourceIdentifier> requiredSources,
             final StatementParserMode statementParserMode, final Set<QName> supportedFeatures) {
         return createSchemaContext(requiredSources,
-                statementParserMode == StatementParserMode.SEMVER_MODE ? this.semVerCache : this.cache,
+                statementParserMode == StatementParserMode.SEMVER_MODE ? this.semVerCache : this.revisionCache,
                 new AssembleSources(Optional.ofNullable(supportedFeatures), statementParserMode));
     }