FilesystemSchemaSourceCache reduce sourceIdToFile(...) visibility 19/36919/4
authorRyan Goulding <ryandgoulding@gmail.com>
Wed, 30 Mar 2016 20:47:47 +0000 (16:47 -0400)
committerRyan Goulding <ryandgoulding@gmail.com>
Fri, 1 Apr 2016 12:58:18 +0000 (12:58 +0000)
Change sourceIdToFile(...) scope to default.  public is not needed, as nothing
calls this function from outside the package.  I pulled autorelease, and
confirmed that no other projects call this function.  Some tests within the
package test this method explicitly, and there is no easy way to decrase
visibility to private.  The @Beta annotation was removed as this API is no
longer advertised publically.

Change-Id: Iacb41bea5eef7477b279f21b0fe2a103dcce3e4b
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/repo/util/FilesystemSchemaSourceCache.java

index 175ed601d7d2bc82084e4a9c9c08923dead95759..f4473859a59b1759e9dfa8625ca6e1fe55681f99 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.yangtools.yang.model.repo.util;
 
-import com.google.common.annotations.Beta;
 import com.google.common.base.MoreObjects;
 import com.google.common.base.Optional;
 import com.google.common.base.Preconditions;
@@ -144,13 +143,8 @@ public final class FilesystemSchemaSourceCache<T extends SchemaSourceRepresentat
     private File sourceIdToFile(final T source) {
         return sourceIdToFile(source.getIdentifier(), storageDirectory);
     }
-    /*
-     *  FIXME: Move of code from deprecated FilesystemSchemaCachingProvider
-     *  to reduce cycle. Decrease visibility once FilesystemSchemaCachingProvider
-     *  is removed.
-     */
-    @Beta
-    public static File sourceIdToFile(final SourceIdentifier identifier, final File storageDirectory) {
+
+    static File sourceIdToFile(final SourceIdentifier identifier, final File storageDirectory) {
         final String rev = identifier.getRevision();
         final File file;
         if (Strings.isNullOrEmpty(rev)) {