For IntelliJ IDEA,
Android Studio or Eclipse



private void myMethod () {AbstractFileSystem a =
FileContext fileContext;fileContext.getDefaultFileSystem()
URI uri;AbstractFileSystem.get(uri, conf)
- Smart code suggestions by Codota
}
@Override public Object run() throws Exception { fs = AbstractFileSystem.get(primaryFsUri, primaryFsCfg); return null; } });
private void testDefaultUriInternal(String defaultUri) throws UnsupportedFileSystemException { final Configuration conf = new Configuration(); FileSystem.setDefaultUri(conf, defaultUri); final AbstractFileSystem ftpFs = AbstractFileSystem.get(FTP_URI_NO_PORT, conf); Assert.assertEquals(FTP_URI_WITH_PORT, ftpFs.getUri()); }
AbstractFileSystem fs = AbstractFileSystem.get(new URI(igfsScheme()), job.getConfiguration());
@Override public AbstractFileSystem run() throws UnsupportedFileSystemException { return AbstractFileSystem.get(uri, conf); } });
public AbstractFileSystem run() throws UnsupportedFileSystemException { return AbstractFileSystem.get(uri, conf); } });