Bug: Replace Guava initialization of Lists.newArrayList
Status: Resolved | Priority: Major | Resolution: Duplicate
Created: 07/Jul/20 14:53

There are unjustified use of Guava APIs to initialize LinkedLists and ArrayLists. This could be simply replaced by Java API.

By analyzing hadoop code, the best way to replace guava  is to do the following steps:
 * create a wrapper class org.apache.hadoop.util.unguava.Lists 
 * implement the following interfaces in Lists:
 ** public static <E> ArrayList<E> newArrayList()
 ** public static <E> ArrayList<E> newArrayList(E... elements)
 ** public static <E> ArrayList<E> newArrayList(Iterable<? extends E> elements)
 ** public static <E> ArrayList<E> newArrayList(Iterator<? extends E> elements)
 ** public static <E> ArrayList<E> newArrayListWithCapacity(int initialArraySize)
 ** public static <E> LinkedList<E> newLinkedList()
 ** public static <E> LinkedList<E> newLinkedList(Iterable<? extends E> elements)
 ** public static <E> List<E> asList(@Nullable E first, E[] rest)

 

After this class is created, we can simply replace the import statement in all the source code.

 
{code:java}
Targets
    Occurrences of 'com.google.common.collect.Lists;' in project with mask '*.java'
Found Occurrences  (246 usages found)
    org.apache.hadoop.conf  (1 usage found)
        TestReconfiguration.java  (1 usage found)
            22 import com.google.common.collect.Lists;
    org.apache.hadoop.crypto  (1 usage found)
        CryptoCodec.java  (1 usage found)
            35 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.azurebfs  (3 usages found)
        ITestAbfsIdentityTransformer.java  (1 usage found)
            25 import com.google.common.collect.Lists;
        ITestAzureBlobFilesystemAcl.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        ITestAzureBlobFileSystemCheckAccess.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.http.client  (2 usages found)
        BaseTestHttpFSWith.java  (1 usage found)
            77 import com.google.common.collect.Lists;
        HttpFSFileSystem.java  (1 usage found)
            75 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.permission  (2 usages found)
        AclStatus.java  (1 usage found)
            27 import com.google.common.collect.Lists;
        AclUtil.java  (1 usage found)
            26 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.s3a  (3 usages found)
        ITestS3AFailureHandling.java  (1 usage found)
            23 import com.google.common.collect.Lists;
        ITestS3GuardListConsistency.java  (1 usage found)
            34 import com.google.common.collect.Lists;
        S3AUtils.java  (1 usage found)
            57 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.s3a.auth  (1 usage found)
        RolePolicies.java  (1 usage found)
            26 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.s3a.commit  (2 usages found)
        ITestCommitOperations.java  (1 usage found)
            28 import com.google.common.collect.Lists;
        TestMagicCommitPaths.java  (1 usage found)
            25 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.s3a.commit.staging  (3 usages found)
        StagingTestBase.java  (1 usage found)
            47 import com.google.common.collect.Lists;
        TestStagingPartitionedFileListing.java  (1 usage found)
            31 import com.google.common.collect.Lists;
        TestStagingPartitionedTaskCommit.java  (1 usage found)
            28 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.s3a.impl  (2 usages found)
        RenameOperation.java  (1 usage found)
            30 import com.google.common.collect.Lists;
        TestPartialDeleteFailures.java  (1 usage found)
            37 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.s3a.s3guard  (3 usages found)
        DumpS3GuardDynamoTable.java  (1 usage found)
            38 import com.google.common.collect.Lists;
        DynamoDBMetadataStore.java  (1 usage found)
            67 import com.google.common.collect.Lists;
        ITestDynamoDBMetadataStore.java  (1 usage found)
            49 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.shell  (1 usage found)
        AclCommands.java  (1 usage found)
            25 import com.google.common.collect.Lists;
    org.apache.hadoop.fs.viewfs  (2 usages found)
        TestViewFileSystemWithAcls.java  (1 usage found)
            20 import com.google.common.collect.Lists;
        TestViewFsWithAcls.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.ha  (4 usages found)
        DummyHAService.java  (1 usage found)
            38 import com.google.common.collect.Lists;
        NodeFencer.java  (1 usage found)
            31 import com.google.common.collect.Lists;
        TestNodeFencer.java  (1 usage found)
            32 import com.google.common.collect.Lists;
        TestShellCommandFencer.java  (1 usage found)
            26 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs  (23 usages found)
        AdminStatesBaseTest.java  (1 usage found)
            31 import com.google.common.collect.Lists;
        DFSClient.java  (1 usage found)
            198 import com.google.common.collect.Lists;
        DFSTestUtil.java  (1 usage found)
            80 import com.google.common.collect.Lists;
        DFSUtil.java  (1 usage found)
            110 import com.google.common.collect.Lists;
        DistributedFileSystem.java  (1 usage found)
            24 import com.google.common.collect.Lists;
        HAUtil.java  (1 usage found)
            61 import com.google.common.collect.Lists;
        MiniDFSCluster.java  (1 usage found)
            147 import com.google.common.collect.Lists;
        MiniDFSNNTopology.java  (1 usage found)
            26 import com.google.common.collect.Lists;
        TestBatchedListDirectories.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        TestBlockStoragePolicy.java  (1 usage found)
            27 import com.google.common.collect.Lists;
        TestDecommission.java  (1 usage found)
            42 import com.google.common.collect.Lists;
        TestDFSFinalize.java  (1 usage found)
            38 import com.google.common.collect.Lists;
        TestDFSRollback.java  (1 usage found)
            44 import com.google.common.collect.Lists;
        TestDFSShell.java  (1 usage found)
            38 import com.google.common.collect.Lists;
        TestEncryptionZones.java  (1 usage found)
            46 import com.google.common.collect.Lists;
        TestErasureCodingExerciseAPIs.java  (1 usage found)
            20 import com.google.common.collect.Lists;
        TestExtendedAcls.java  (1 usage found)
            20 import com.google.common.collect.Lists;
        TestMaintenanceState.java  (1 usage found)
            64 import com.google.common.collect.Lists;
        TestQuota.java  (1 usage found)
            68 import com.google.common.collect.Lists;
        TestSafeMode.java  (1 usage found)
            63 import com.google.common.collect.Lists;
        TestSafeModeWithStripedFile.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        TestTrashWithSecureEncryptionZones.java  (1 usage found)
            35 import com.google.common.collect.Lists;
        XAttrHelper.java  (1 usage found)
            30 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.protocol  (2 usages found)
        LocatedBlock.java  (1 usage found)
            32 import com.google.common.collect.Lists;
        ReencryptionStatus.java  (1 usage found)
            22 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.protocol.datatransfer  (1 usage found)
        PipelineAck.java  (1 usage found)
            27 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.protocol.datatransfer.sasl  (2 usages found)
        SaslDataTransferClient.java  (1 usage found)
            68 import com.google.common.collect.Lists;
        SaslDataTransferServer.java  (1 usage found)
            63 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.protocolPB  (3 usages found)
        ClientNamenodeProtocolTranslatorPB.java  (1 usage found)
            27 import com.google.common.collect.Lists;
        PBHelperClient.java  (1 usage found)
            35 import com.google.common.collect.Lists;
        TestPBHelper.java  (1 usage found)
            120 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.qjournal  (2 usages found)
        MiniJournalCluster.java  (1 usage found)
            44 import com.google.common.collect.Lists;
        QJMTestUtil.java  (1 usage found)
            45 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.qjournal.client  (3 usages found)
        QuorumJournalManager.java  (1 usage found)
            64 import com.google.common.collect.Lists;
        TestQuorumJournalManager.java  (1 usage found)
            72 import com.google.common.collect.Lists;
        TestQuorumJournalManagerUnit.java  (1 usage found)
            61 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.qjournal.server  (3 usages found)
        JournalNode.java  (1 usage found)
            23 import com.google.common.collect.Lists;
        JournalNodeSyncer.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        TestJournalNodeSync.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.security.token.delegation  (1 usage found)
        DelegationTokenSecretManager.java  (1 usage found)
            53 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.aliasmap  (1 usage found)
        InMemoryAliasMap.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.blockmanagement  (5 usages found)
        BlockStoragePolicySuite.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        PendingDataNodeMessages.java  (1 usage found)
            27 import com.google.common.collect.Lists;
        SlowDiskTracker.java  (1 usage found)
            28 import com.google.common.collect.Lists;
        TestBlockManager.java  (1 usage found)
            23 import com.google.common.collect.Lists;
        TestRBWBlockInvalidation.java  (1 usage found)
            50 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.common  (1 usage found)
        Util.java  (1 usage found)
            40 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.common.blockaliasmap.impl  (1 usage found)
        TestInMemoryLevelDBAliasMapClient.java  (1 usage found)
            19 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.datanode  (9 usages found)
        BlockPoolManager.java  (1 usage found)
            34 import com.google.common.collect.Lists;
        BlockPoolSliceStorage.java  (1 usage found)
            52 import com.google.common.collect.Lists;
        BPOfferService.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        DataNode.java  (1 usage found)
            231 import com.google.common.collect.Lists;
        DataStorage.java  (1 usage found)
            67 import com.google.common.collect.Lists;
        TestBPOfferService.java  (1 usage found)
            93 import com.google.common.collect.Lists;
        TestDataNodeHotSwapVolumes.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        TestDataNodeMetrics.java  (1 usage found)
            38 import com.google.common.collect.Lists;
        TestDatanodeRegister.java  (1 usage found)
            36 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.datanode.fsdataset.impl  (2 usages found)
        FsDatasetImpl.java  (1 usage found)
            125 import com.google.common.collect.Lists;
        TestFsDatasetImpl.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.datanode.web.webhdfs  (1 usage found)
        TestDataNodeUGIProvider.java  (1 usage found)
            55 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.diskbalancer.command  (3 usages found)
        Command.java  (1 usage found)
            25 import com.google.common.collect.Lists;
        ReportCommand.java  (1 usage found)
            37 import com.google.common.collect.Lists;
        TestDiskBalancerCommand.java  (1 usage found)
            74 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.mover  (1 usage found)
        Mover.java  (1 usage found)
            22 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.namenode  (44 usages found)
        AclStorage.java  (1 usage found)
            25 import com.google.common.collect.Lists;
        AclTransformation.java  (1 usage found)
            32 import com.google.common.collect.Lists;
        BackupImage.java  (1 usage found)
            34 import com.google.common.collect.Lists;
        CacheManager.java  (1 usage found)
            95 import com.google.common.collect.Lists;
        Checkpointer.java  (1 usage found)
            46 import com.google.common.collect.Lists;
        EncryptionZoneManager.java  (1 usage found)
            34 import com.google.common.collect.Lists;
        FileJournalManager.java  (1 usage found)
            51 import com.google.common.collect.Lists;
        FSAclBaseTest.java  (1 usage found)
            61 import com.google.common.collect.Lists;
        FSDirAttrOp.java  (1 usage found)
            41 import com.google.common.collect.Lists;
        FSDirEncryptionZoneOp.java  (1 usage found)
            56 import com.google.common.collect.Lists;
        FSDirErasureCodingOp.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        FSDirSatisfyStoragePolicyOp.java  (1 usage found)
            36 import com.google.common.collect.Lists;
        FSDirXAttrOp.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        FSEditLog.java  (1 usage found)
            114 import com.google.common.collect.Lists;
        FSEditLogOp.java  (1 usage found)
            144 import com.google.common.collect.Lists;
        FSImage.java  (1 usage found)
            80 import com.google.common.collect.Lists;
        FSImageFormatProtobuf.java  (1 usage found)
            79 import com.google.common.collect.Lists;
        FSImageTestUtil.java  (1 usage found)
            69 import com.google.common.collect.Lists;
        FSImageTransactionalStorageInspector.java  (1 usage found)
            39 import com.google.common.collect.Lists;
        FSNamesystem.java  (1 usage found)
            344 import com.google.common.collect.Lists;
        FSXAttrBaseTest.java  (1 usage found)
            62 import com.google.common.collect.Lists;
        InotifyFSEditLogOpTranslator.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        JournalSet.java  (1 usage found)
            45 import com.google.common.collect.Lists;
        LeaseManager.java  (1 usage found)
            40 import com.google.common.collect.Lists;
        NameNode.java  (1 usage found)
            23 import com.google.common.collect.Lists;
        NameNodeRpcServer.java  (1 usage found)
            48 import com.google.common.collect.Lists;
        NNStorage.java  (1 usage found)
            62 import com.google.common.collect.Lists;
        NNStorageRetentionManager.java  (1 usage found)
            42 import com.google.common.collect.Lists;
        ReencryptionUpdater.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        SecondaryNameNode.java  (1 usage found)
            32 import com.google.common.collect.Lists;
        TestAclConfigFlag.java  (1 usage found)
            40 import com.google.common.collect.Lists;
        TestAclTransformation.java  (1 usage found)
            30 import com.google.common.collect.Lists;
        TestAuditLogger.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        TestBackupNode.java  (1 usage found)
            62 import com.google.common.collect.Lists;
        TestCheckpoint.java  (1 usage found)
            101 import com.google.common.collect.Lists;
        TestEditLog.java  (1 usage found)
            107 import com.google.common.collect.Lists;
        TestFSDirectory.java  (1 usage found)
            50 import com.google.common.collect.Lists;
        TestFSImage.java  (1 usage found)
            38 import com.google.common.collect.Lists;
        TestFSImageWithAcl.java  (1 usage found)
            42 import com.google.common.collect.Lists;
        TestINodeAttributeProvider.java  (1 usage found)
            48 import com.google.common.collect.Lists;
        TestLeaseManager.java  (1 usage found)
            25 import com.google.common.collect.Lists;
        TestNNStorageRetentionManager.java  (1 usage found)
            54 import com.google.common.collect.Lists;
        TransferFsImage.java  (1 usage found)
            61 import com.google.common.collect.Lists;
        XAttrPermissionFilter.java  (1 usage found)
            28 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.namenode.ha  (7 usages found)
        StandbyCheckpointer.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        TestDNFencing.java  (1 usage found)
            33 import com.google.common.collect.Lists;
        TestEditLogsDuringFailover.java  (1 usage found)
            48 import com.google.common.collect.Lists;
        TestHASafeMode.java  (1 usage found)
            76 import com.google.common.collect.Lists;
        TestRequestHedgingProxyProvider.java  (1 usage found)
            59 import com.google.common.collect.Lists;
        TestStandbyCheckpoints.java  (1 usage found)
            23 import com.google.common.collect.Lists;
        TestStandbyInProgressTail.java  (1 usage found)
            53 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.namenode.snapshot  (3 usages found)
        DirectorySnapshottableFeature.java  (1 usage found)
            52 import com.google.common.collect.Lists;
        TestAclWithSnapshot.java  (1 usage found)
            58 import com.google.common.collect.Lists;
        TestFileWithSnapshotFeature.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.namenode.top.metrics  (1 usage found)
        TopMetrics.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.namenode.top.window  (1 usage found)
        RollingWindowManager.java  (1 usage found)
            28 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.server.namenode.web.resources  (1 usage found)
        NamenodeWebHdfsMethods.java  (1 usage found)
            118 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.tools  (3 usages found)
        TestDFSAdmin.java  (1 usage found)
            29 import com.google.common.collect.Lists;
        TestViewFileSystemOverloadSchemeWithDFSAdmin.java  (1 usage found)
            50 import com.google.common.collect.Lists;
        TestViewFileSystemOverloadSchemeWithFSCommands.java  (1 usage found)
            49 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.tools.offlineImageViewer  (5 usages found)
        FSImageLoader.java  (1 usage found)
            61 import com.google.common.collect.Lists;
        PBImageTextWriter.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        PBImageXmlWriter.java  (1 usage found)
            72 import com.google.common.collect.Lists;
        TestOfflineImageViewer.java  (1 usage found)
            138 import com.google.common.collect.Lists;
        TestOfflineImageViewerForAcl.java  (1 usage found)
            74 import com.google.common.collect.Lists;
    org.apache.hadoop.hdfs.web  (5 usages found)
        JsonUtil.java  (1 usage found)
            43 import com.google.common.collect.Lists;
        JsonUtilClient.java  (1 usage found)
            23 import com.google.common.collect.Lists;
        TestJsonUtil.java  (1 usage found)
            59 import com.google.common.collect.Lists;
        TestURLConnectionFactory.java  (1 usage found)
            36 import com.google.common.collect.Lists;
        WebHdfsFileSystem.java  (1 usage found)
            140 import com.google.common.collect.Lists;
    org.apache.hadoop.http  (1 usage found)
        HttpServer2.java  (1 usage found)
            55 import com.google.common.collect.Lists;
    org.apache.hadoop.lib.wsrs  (2 usages found)
        Parameters.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        ParametersProvider.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.mapred  (1 usage found)
        TestFileInputFormat.java  (1 usage found)
            46 import com.google.common.collect.Lists;
    org.apache.hadoop.mapred.nativetask.kvtest  (1 usage found)
        KVTest.java  (1 usage found)
            45 import com.google.common.collect.Lists;
    org.apache.hadoop.mapred.uploader  (1 usage found)
        TestFrameworkUploader.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.mapreduce.counters  (1 usage found)
        CounterGroupFactory.java  (1 usage found)
            24 import com.google.common.collect.Lists;
    org.apache.hadoop.mapreduce.lib.input  (2 usages found)
        FileInputFormat.java  (1 usage found)
            50 import com.google.common.collect.Lists;
        TestFileInputFormat.java  (1 usage found)
            57 import com.google.common.collect.Lists;
    org.apache.hadoop.mapreduce.util  (1 usage found)
        CountersStrings.java  (1 usage found)
            24 import com.google.common.collect.Lists;
    org.apache.hadoop.mapreduce.v2.app  (1 usage found)
        MockJobs.java  (1 usage found)
            73 import com.google.common.collect.Lists;
    org.apache.hadoop.maven.plugin.resourcegz  (1 usage found)
        ResourceGzMojo.java  (1 usage found)
            16 import com.google.common.collect.Lists;
    org.apache.hadoop.metrics2.impl  (5 usages found)
        MBeanInfoBuilder.java  (1 usage found)
            25 import com.google.common.collect.Lists;
        MetricsCollectorImpl.java  (1 usage found)
            25 import com.google.common.collect.Lists;
        MetricsRecordBuilderImpl.java  (1 usage found)
            24 import com.google.common.collect.Lists;
        MetricsSystemImpl.java  (1 usage found)
            33 import com.google.common.collect.Lists;
        TestKafkaMetrics.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.metrics2.util  (1 usage found)
        Servers.java  (1 usage found)
            25 import com.google.common.collect.Lists;
    org.apache.hadoop.net  (1 usage found)
        NetworkTopology.java  (1 usage found)
            22 import com.google.common.collect.Lists;
    org.apache.hadoop.registry.client.impl.zk  (1 usage found)
        RegistrySecurity.java  (1 usage found)
            23 import com.google.common.collect.Lists;
    org.apache.hadoop.tools  (2 usages found)
        CopyListingFileStatus.java  (1 usage found)
            44 import com.google.common.collect.Lists;
        SimpleCopyListing.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.tools.dynamometer  (2 usages found)
        ApplicationMaster.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        Client.java  (1 usage found)
            24 import com.google.common.collect.Lists;
    org.apache.hadoop.tools.dynamometer.workloadgenerator  (1 usage found)
        CreateFileMapper.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.tools.dynamometer.workloadgenerator.audit  (1 usage found)
        AuditReplayMapper.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.tools.util  (1 usage found)
        TestDistCpUtils.java  (1 usage found)
            46 import com.google.common.collect.Lists;
    org.apache.hadoop.util  (5 usages found)
        ChunkedArrayList.java  (1 usage found)
            29 import com.google.common.collect.Lists;
        JvmPauseMonitor.java  (1 usage found)
            33 import com.google.common.collect.Lists;
        TestApplicationClassLoader.java  (1 usage found)
            45 import com.google.common.collect.Lists;
        TestDirectBufferPool.java  (1 usage found)
            29 import com.google.common.collect.Lists;
        ZKUtil.java  (1 usage found)
            32 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.api  (1 usage found)
        BasePBImplRecordsTest.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.client.api.impl  (1 usage found)
        NMClientImpl.java  (1 usage found)
            30 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.client.cli  (1 usage found)
        NodeAttributesCLI.java  (1 usage found)
            22 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.nodemanager  (1 usage found)
        TestContainerExecutor.java  (1 usage found)
            33 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.nodemanager.containermanager  (1 usage found)
        TestContainerManager.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher  (1 usage found)
        TestContainerLaunch.java  (1 usage found)
            58 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.gpu  (1 usage found)
        TestGpuResourceAllocator.java  (1 usage found)
            61 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.com.nec  (2 usages found)
        TestNECVEPlugin.java  (1 usage found)
            49 import org.apache.curator.shaded.com.google.common.collect.Lists;
        TestVEDeviceDiscoverer.java  (1 usage found)
            50 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.fpga  (1 usage found)
        TestIntelFpgaOpenclPlugin.java  (1 usage found)
            25 import org.apache.curator.shaded.com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.gpu  (2 usages found)
        GpuDiscoverer.java  (1 usage found)
            25 import com.google.common.collect.Lists;
        TestGpuResourcePlugin.java  (1 usage found)
            24 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager  (2 usages found)
        MockNodes.java  (1 usage found)
            46 import com.google.common.collect.Lists;
        TestAppManager.java  (1 usage found)
            22 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.applicationsmanager  (2 usages found)
        MockAsm.java  (1 usage found)
            59 import com.google.common.collect.Lists;
        TestAMRestart.java  (1 usage found)
            29 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.recovery  (1 usage found)
        TestZKRMStateStore.java  (1 usage found)
            77 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.rmapp  (1 usage found)
        TestRMAppTransitions.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.scheduler  (2 usages found)
        SchedulerUtils.java  (1 usage found)
            27 import com.google.common.collect.Lists;
        TestAbstractYarnScheduler.java  (1 usage found)
            36 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.scheduler.activities  (1 usage found)
        ActivitiesManager.java  (1 usage found)
            22 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.processor  (1 usage found)
        PlacementConstraintProcessor.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair  (5 usages found)
        FairScheduler.java  (1 usage found)
            23 import com.google.common.collect.Lists;
        FairSchedulerConfiguration.java  (1 usage found)
            28 import com.google.common.collect.Lists;
        FairSchedulerTestBase.java  (1 usage found)
            20 import com.google.common.collect.Lists;
        FSSchedulerNode.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        TestFairScheduler.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.allocationfile  (3 usages found)
        AllocationFileQueue.java  (1 usage found)
            19 import com.google.common.collect.Lists;
        AllocationFileQueuePlacementPolicy.java  (1 usage found)
            20 import com.google.common.collect.Lists;
        AllocationFileQueuePlacementRule.java  (1 usage found)
            20 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.converter  (2 usages found)
        TestFSConfigToCSConfigArgumentHandler.java  (1 usage found)
            48 import com.google.common.collect.Lists;
        TestQueuePlacementConverter.java  (1 usage found)
            49 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.webapp  (1 usage found)
        ActivitiesTestUtils.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.resourcemanager.webapp.helper  (2 usages found)
        ResourceRequestsJsonVerifications.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        ResourceRequestsXmlVerifications.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.server.webproxy  (1 usage found)
        TestProxyUriUtils.java  (1 usage found)
            32 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.service  (3 usages found)
        MockServiceAM.java  (1 usage found)
            22 import com.google.common.collect.Lists;
        TestDefaultUpgradeComponentsFinder.java  (1 usage found)
            20 import com.google.common.collect.Lists;
        TestYarnNativeServices.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.service.client  (2 usages found)
        TestApiServiceClient.java  (1 usage found)
            29 import com.google.common.collect.Lists;
        TestServiceClient.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.service.component.instance  (1 usage found)
        TestComponentInstance.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.service.provider  (1 usage found)
        TestAbstractProviderService.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.service.utils  (1 usage found)
        TestFilterUtils.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.service.webapp  (1 usage found)
        ApiServer.java  (1 usage found)
            21 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.util.resource  (1 usage found)
        CustomResourceTypesConfigurationProvider.java  (1 usage found)
            19 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.webapp  (2 usages found)
        ResponseInfo.java  (1 usage found)
            21 import com.google.common.collect.Lists;
        WebApp.java  (1 usage found)
            38 import com.google.common.collect.Lists;
    org.apache.hadoop.yarn.webapp.view  (2 usages found)
        JQueryUI.java  (1 usage found)
            31 import com.google.common.collect.Lists;
        TwoColumnLayout.java  (1 usage found)
            28 import com.google.common.collect.Lists;
{code}