- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Gson g =
new Gson()
GsonBuilder gsonBuilder;gsonBuilder.create()
new GsonBuilder().create()
- Smart code suggestions by Codota
}
/** * @return @throws InterruptedException * * @throws NotAvailableException */ public synchronized static UserActivityRegistryRemote getRegistry() throws InterruptedException, NotAvailableException { try { if (shutdown) { throw new InvalidStateException("Remote service is shutting down!"); } if (registryRemote == null) { try { registryRemote = new UserActivityRegistryRemote(); registryRemote.init(); registryRemote.activate(); registryRemote.lock(REMOTE_LOCK); } catch (Exception ex) { if (registryRemote != null) { registryRemote.unlock(REMOTE_LOCK); registryRemote.shutdown(); registryRemote = null; } throw ExceptionPrinter.printHistoryAndReturnThrowable(new CouldNotPerformException("Could not start cached user activity registry remote!", ex), LOGGER); } } return registryRemote; } catch (CouldNotPerformException ex) { throw new NotAvailableException("cached user activity registry", ex); } }