code
stringlengths
73
34.1k
label
stringclasses
1 value
public void setPollInterval( long pollInterval ) { this.pollInterval = pollInterval; this.logger.fine( "Template watcher poll interval set to " + pollInterval ); synchronized( this.watcherLock ) { if( this.templateWatcher != null ) resetWatcher(); } }
java
public void setTemplatesDirectory( String templatesDirectory ) { this.logger.fine( "Templates directory is now... " + templatesDirectory ); this.templatesDIR = Utils.isEmptyOrWhitespaces( templatesDirectory ) ? null : new File( templatesDirectory ); synchronized( this.watcherLock ) { if( this.templateWatcher ...
java
public void setOutputDirectory( String outputDirectory ) { // Update the configuration this.logger.fine( "Output directory is now... " + outputDirectory ); this.outputDIR = Utils.isEmptyOrWhitespaces( outputDirectory ) ? null : new File( outputDirectory ); // Generate the files if( this.outputDIR != null &&...
java
private void resetWatcher() { // Stop the current watcher. stopWatcher(); // Update the template & target directories, based on the provided configuration directory. if( this.templatesDIR == null ) { this.logger.warning( "The templates directory was not specified. DM templating is temporarily disabled." );...
java
public static void configureFactory( ConnectionFactory factory, Map<String,String> configuration ) throws IOException { final Logger logger = Logger.getLogger( RabbitMqUtils.class.getName()); logger.fine( "Configuring a connection factory for RabbitMQ." ); String messageServerIp = configuration.get( RABBITMQ_S...
java
public static void closeConnection( Channel channel ) throws IOException { if( channel != null ) { if( channel.isOpen()) channel.close(); if( channel.getConnection().isOpen()) channel.getConnection().close(); } }
java
public static String buildExchangeName( MessagingContext ctx ) { String exchangeName; if( ctx.getKind() == RecipientKind.DM ) exchangeName = buildExchangeNameForTheDm( ctx.getDomain()); else if( ctx.getKind() == RecipientKind.INTER_APP ) exchangeName = buildExchangeNameForInterApp( ctx.getDomain()); else...
java
private void renderState(FacesContext context) throws IOException { // Get the view state and write it to the response.. PartialViewContext pvc = context.getPartialViewContext(); PartialResponseWriter writer = pvc.getPartialResponseWriter(); String viewStateId = Util.getViewStateId(context); writer.startUpda...
java
public static Map<String,String> formatExportedVars( Instance instance ) { // The map we will return Map<String, String> exportedVars = new HashMap<> (); // Iterate over the instance and its ancestors. // There is no loop in parent relations, so no risk of conflict in variable names. for( Instance inst = in...
java
public static void setScriptsExecutable( File fileOrDir ) { List<File> files = new ArrayList<> (); if( fileOrDir.isDirectory()) files.addAll( Utils.listAllFiles( fileOrDir, true )); else files.add( fileOrDir ); for( File f : files ) f.setExecutable( true ); }
java
public void switchMessagingType( String factoryName ) { // Create a new client this.logger.fine( "The messaging is requested to switch its type to " + factoryName + "." ); JmxWrapperForMessagingClient newMessagingClient = null; try { IMessagingClient rawClient = createMessagingClient( factoryName ); if( ...
java
protected IMessagingClient createMessagingClient( String factoryName ) throws IOException { IMessagingClient client = null; MessagingClientFactoryRegistry registry = getRegistry(); if( registry != null ) { IMessagingClientFactory factory = registry.getMessagingClientFactory(factoryName); if( factory != nul...
java
static void terminateClient( IMessagingClient client, String errorMessage, Logger logger ) { try { logger.fine( "The reconfigurable client is requesting its internal connection to be closed." ); if( client != null ) client.closeConnection(); } catch( Exception e ) { logger.warning( errorMessage + " "...
java
public static int computeShapeWidth( AbstractType type ) { Font font = GraphUtils.getDefaultFont(); BufferedImage img = new BufferedImage( 1, 1, BufferedImage.TYPE_INT_ARGB ); FontMetrics fm = img.getGraphics().getFontMetrics( font ); int width = fm.stringWidth( type.getName()); width = Math.max( width, 80 ...
java
public static void writeGraph( File outputFile, Component selectedComponent, Layout<AbstractType,String> layout, Graph<AbstractType,String> graph , AbstractEdgeShapeTransformer<AbstractType,String> edgeShapeTransformer, Map<String,String> options ) throws IOException { VisualizationImageServer<Abs...
java
static Color decode( String value, String defaultValue ) { Color result; try { result = Color.decode( value ); } catch( NumberFormatException e ) { Logger logger = Logger.getLogger( GraphUtils.class.getName()); logger.severe( "The specified color " + value + " could not be parsed. Back to default value...
java
public AgentProperties findParametersForAmazonOrOpenStack( Logger logger ) { logger.info( "User data are being retrieved for AWS / Openstack..." ); // Copy the user data String userData = Utils.readUrlContentQuietly( "http://169.254.169.254/latest/user-data", logger ); String ip = Utils.readUrlContentQuietly( ...
java
public AgentProperties findParametersForAzure( Logger logger ) { logger.info( "User data are being retrieved for Microsoft Azure..." ); String userData = ""; try { // Get the user data from /var/lib/waagent/ovf-env.xml and decode it String userDataEncoded = getValueOfTagInXMLFile( "/var/lib/waagent/ovf-env...
java
public AgentProperties findParametersForVmware( Logger logger ) { logger.info( "User data are being retrieved for VMWare..." ); AgentProperties result = null; File propertiesFile = new File("/tmp/roboconf.properties"); try { int retries = 30; while((! propertiesFile.exists() || ! propertiesFile.canRead()...
java
public AgentProperties findParametersFromUrl( String url, Logger logger ) { logger.info( "User data are being retrieved from URL: " + url ); AgentProperties result = null; try { URI uri = UriUtils.urlToUri( url ); Properties props = new Properties(); InputStream in = null; try { in = uri.toURL()....
java
public void reconfigureMessaging( String etcDir, Map<String,String> msgData ) throws IOException { String messagingType = msgData.get( MessagingConstants.MESSAGING_TYPE_PROPERTY ); Logger.getLogger( getClass().getName()).fine( "Messaging type for reconfiguration: " + messagingType ); if( ! Utils.isEmptyOrWhites...
java
public static String findInstanceName( String instancePath ) { String instanceName = ""; Matcher m = Pattern.compile( "([^/]+)$" ).matcher( instancePath ); if( m.find()) instanceName = m.group( 1 ); return instanceName; }
java
public static List<Instance> findInstancesByComponentName( AbstractApplication application, String componentName ) { List<Instance> result = new ArrayList<> (); for( Instance inst : getAllInstances( application )) { if( componentName.equals( inst.getComponent().getName())) result.add( inst ); } return ...
java
public static Instance findRootInstance( Instance instance ) { Instance rootInstance = instance; while( rootInstance.getParent() != null ) rootInstance = rootInstance.getParent(); return rootInstance; }
java
public static List<Instance> findAllScopedInstances( AbstractApplication app ) { List<Instance> instanceList = new ArrayList<> (); List<Instance> todo = new ArrayList<> (); todo.addAll( app.getRootInstances()); while( ! todo.isEmpty()) { Instance current = todo.remove( 0 ); todo.addAll( current.getChild...
java
public static List<Instance> getAllInstances( AbstractApplication application ) { List<Instance> result = new ArrayList<> (); for( Instance instance : application.getRootInstances()) result.addAll( InstanceHelpers.buildHierarchicalList( instance )); return result; }
java
public static boolean hasChildWithThisName( AbstractApplication application, Instance parentInstance, String nameToSearch ) { boolean hasAlreadyAChildWithThisName = false; Collection<Instance> list = parentInstance == null ? application.getRootInstances() : parentInstance.getChildren(); for( Iterator<Instance> i...
java
public static File findInstanceDirectoryOnAgent( Instance instance ) { String path = InstanceHelpers.computeInstancePath( instance ); path = path.substring( 1 ).replace( '/', '_' ).replace( ' ', '_' ); String installerName = ComponentHelpers.findComponentInstaller( instance.getComponent()); return new File( C...
java
public static boolean isTarget( Instance instance ) { return instance.getComponent() != null && ComponentHelpers.isTarget( instance.getComponent()); }
java
public static String findRootInstancePath( String scopedInstancePath ) { String result; if( Utils.isEmptyOrWhitespaces( scopedInstancePath )) { // Do not return null result = ""; } else if( scopedInstancePath.contains( "/" )) { // Be as flexible as possible with paths String s = scopedInstancePath.r...
java
public static boolean isDartControllerActive() { Map<String, Object> sessionMap = FacesContext.getCurrentInstance().getExternalContext().getSessionMap(); if (sessionMap.containsKey(DART_CONTROLLER)) { return "true".equals(sessionMap.get(DART_CONTROLLER)); } return false; }
java
public static void setControllerName(String name) { Map<String, Object> sessionMap = FacesContext.getCurrentInstance().getExternalContext().getSessionMap(); sessionMap.put(DART_CONTROLLER_NAME, name); }
java
public static String uncommentLine( String line ) { String result = line; if( ! Utils.isEmptyOrWhitespaces( line ) && line.trim().startsWith( ParsingConstants.COMMENT_DELIMITER )) result = line.replaceFirst( "^(\\s*)" + ParsingConstants.COMMENT_DELIMITER + "+", "$1" ); return result; }
java
public void parse( String line, File sourceFile, int lineNumber ) { // Reset this.rawNameToVariables.clear(); this.errors.clear(); this.cursor = 0; // Parse while( this.cursor < line.length()) { char c = line.charAt( this.cursor ); if( Character.isWhitespace( c ) || c == ',' ) this.cursor ++; ...
java
public List<TargetWrapperDescriptor> listAllTargets() { this.logger.finer( "Listing all the available targets." ); WebResource path = this.resource.path( UrlConstants.TARGETS ); List<TargetWrapperDescriptor> result = this.wsClient.createBuilder( path ) .accept( MediaType.APPLICATION_JSON ) .type( Med...
java
public String createTarget( String targetContent ) throws TargetWsException { this.logger.finer( "Creating a new target." ); WebResource path = this.resource.path( UrlConstants.TARGETS ); ClientResponse response = this.wsClient.createBuilder( path ).post( ClientResponse.class, targetContent ); handleResponse...
java
public void deleteTarget( String targetId ) throws TargetWsException { this.logger.finer( "Deleting target " + targetId ); WebResource path = this.resource.path( UrlConstants.TARGETS ).path( targetId ); ClientResponse response = this.wsClient.createBuilder( path ) .accept( MediaType.APPLICATION_JSON ) ...
java
public void associateTarget( AbstractApplication app, String instancePathOrComponentName, String targetId, boolean bind ) throws TargetWsException { if( bind ) this.logger.finer( "Associating " + app + " :: " + instancePathOrComponentName + " with " + targetId ); else this.logger.finer( "Dissociating " + ap...
java
public Row addColumn(int index, String name, Object value) { Objects.requireNonNull(name, "Name of the column cannot be null"); Objects.requireNonNull(value, "Value of " + name + " cannot be null"); final Column column = new Column(index, name, value); return this.addColumn(column); ...
java
public static Object selectObject(Node node, String xpathQuery) { Object result = node.selectObject(xpathQuery); if (result != null && result instanceof Collection && ((Collection) result).isEmpty()) { return null; } else { return result; } }
java
public static String selectSingleNodeValue(Node node, String xpathQuery) { Node resultNode = node.selectSingleNode(xpathQuery); if (resultNode != null) { return resultNode.getText(); } else { return null; } }
java
@SuppressWarnings("unchecked") public static List<String> selectNodeValues(Node node, String xpathQuery) { List<Node> resultNodes = node.selectNodes(xpathQuery); return extractNodeValues(resultNodes); }
java
public static List<String> selectNodeValues(Node node, String xpathQuery, Map<String, String> namespaceUris) { List<Node> resultNodes = selectNodes(node, xpathQuery, namespaceUris); return extractNodeValues(resultNodes); }
java
public static Node selectSingleNode(Node node, String xpathQuery, Map<String, String> namespaceUris) { XPath xpath = DocumentHelper.createXPath(xpathQuery); xpath.setNamespaceURIs(namespaceUris); return xpath.selectSingleNode(node); }
java
@SuppressWarnings("unchecked") public static List<Node> selectNodes(Node node, String xpathQuery, Map<String, String> namespaceUris) { XPath xpath = DocumentHelper.createXPath(xpathQuery); xpath.setNamespaceURIs(namespaceUris); return xpath.selectNodes(node); }
java
public static String documentToPrettyString(Document document) { StringWriter stringWriter = new StringWriter(); OutputFormat prettyPrintFormat = OutputFormat.createPrettyPrint(); XMLWriter xmlWriter = new XMLWriter(stringWriter, prettyPrintFormat); try { xmlWriter.write(doc...
java
public String queryDescriptorValue(String xpathQuery) { if (descriptorDom != null) { String value = (String)getProperty(xpathQuery); if (value == null) { value = XmlUtils.selectSingleNodeValue(descriptorDom, xpathQuery); } return value; } ...
java
@SuppressWarnings("unchecked") public List<String> queryDescriptorValues(String xpathQuery) { if (descriptorDom != null) { List<String> value = (List<String>)getProperty(xpathQuery); if (CollectionUtils.isEmpty(value)) { value = XmlUtils.selectNodeValues(descriptorDom...
java
public void addProcessor(ItemProcessor processor) { if (processors == null) { processors = new ArrayList<>(); } processors.add(processor); }
java
public void addProcessors(Collection<ItemProcessor> processors) { if (processors == null) { processors = new ArrayList<>(); } processors.addAll(processors); }
java
protected SAXReader createXmlReader() { SAXReader xmlReader = new SAXReader(); xmlReader.setMergeAdjacentText(true); xmlReader.setStripWhitespaceText(true); xmlReader.setIgnoreComments(true); try { xmlReader.setFeature("http://apache.org/xml/features/disallow-doctype...
java
protected Map<String, Object> createMessageModel(String attributeName, Object attributeValue) { Map<String, Object> model = new HashMap<>(1); model.put(attributeName, attributeValue); return model; }
java
protected void addNewField(Item item, String values) { if(logger.isDebugEnabled()) { logger.debug("Tagging item with field: " + newField + " and value: " + values); } Document document = item.getDescriptorDom(); if(document != null) { Element root = document.getRo...
java
public static String getShortName(String longName, String containsShortNameRegex, int shortNameRegexGroup) { Pattern pattern = Pattern.compile(containsShortNameRegex); Matcher matcher = pattern.matcher(longName); if (matcher.matches()) { return matcher.group(shortNameRegexGroup); ...
java
public Configuration<T> setConfiguration(Map<String, String> configuration) { Validate.notNull(configuration, "Properties for configuration of recorder extension can not be a null object!"); this.configuration = configuration; return this; }
java
public void setProperty(String name, String value) { Validate.notNullOrEmpty(name, "Name of property can not be a null object nor an empty string!"); Validate.notNull(value, "Value of property can not be a null object!"); configuration.put(name, value); }
java
protected void writeTime(Date start, Date stop, long duration) throws IOException { writer.append(".").append(this.resourceBundle.getString("asciidoc.reporter.time")).append(NEW_LINE); writer.append("****").append(NEW_LINE); writer.append("*").append(this.resourceBundle.getString("asciidoc.repo...
java
protected void writeDocumentHeader() throws IOException { writer.append("= ").append(this.configuration.getTitle()).append(NEW_LINE); if(isAttributesFileSet()) { writer.append("include::").append(this.configuration.getAsciiDocAttributesFile()).append("[]").append(NEW_LINE); } ...
java
protected void writeContainerProperties(Map<String, String> properties) throws IOException { if (properties.size() > 0) { writer.append("[cols=\"2*\", options=\"header\"]").append(NEW_LINE); writer.append(".").append(this.resourceBundle.getString("asciidoc.reporter.properties")).append...
java
protected void writeProperties(List<PropertyEntry> propertyEntries) throws IOException { if (containsAnyKeyValueEntryOrFileEntry(propertyEntries)) { writer.append("[cols=\"2*\", options=\"header\"]").append(NEW_LINE); writer.append(".").append(this.resourceBundle.getString("asciidoc.re...
java
protected void writeExtensions(List<ExtensionReport> extensionReports) throws IOException { writer.append("== ").append(this.resourceBundle.getString("asciidoc.reporter.extensions")).append(NEW_LINE) .append(NEW_LINE); for (ExtensionReport extensionReport : extensionReports) { ...
java
protected void writeVideo(VideoEntry videoEntry) throws IOException { writer.append("video::").append(videoEntry.getLink()).append("[]").append(NEW_LINE).append(NEW_LINE); }
java
protected void writeScreenshot(ScreenshotEntry screenshotEntry) throws IOException { int heigth = screenshotEntry.getHeight() * Integer.parseInt(this.configuration.getImageHeight()) / 100; int width = screenshotEntry.getWidth() * Integer.parseInt(this.configuration.getImageWidth()) / 100; bool...
java
protected void writeDeployments(List<DeploymentReport> deploymentReports) throws IOException { for (DeploymentReport deploymentReport : deploymentReports) { writer.append("[cols=\"3*\", options=\"header\"]").append(NEW_LINE); writer.append(".").append(this.resourceBundle.getString("asc...
java
public void setMaxImageWidth(String maxImageWidth) { try { if (Integer.parseInt(maxImageWidth) > 0) { this.maxImageWidth = maxImageWidth; } } catch (NumberFormatException ex) { LOGGER.info(String.format("You are trying to parse '%s' as a number for max...
java
private void validatePath(PropertyEntry entry) { if (entry instanceof VideoEntry) { VideoEntry e = (VideoEntry) entry; if (e.getPath().contains(configuration.getRootDir().getAbsolutePath())) { e.setLink(e.getPath().substring(configuration.getRootDir().getAbsolutePath().le...
java
public void write(String filename, String content) throws IOException { FSDataOutputStream s = getMfs().create(new Path(filename)); s.writeBytes(content); s.close(); }
java
public void copyResource(String filename, String resource) throws IOException { write(filename, IOUtils.toByteArray(getClass().getResource(resource))); }
java
public String read(String filename) throws IOException { Path p = new Path(filename); int size = (int) getMfs().getFileStatus(p).getLen(); FSDataInputStream is = getMfs().open(p); byte[] content = new byte[size]; is.readFully(content); return new String(content); }
java
public boolean exists(Path filename) throws IOException { try { return getMfs().listFiles(filename, true).hasNext(); } catch (FileNotFoundException e) { return false; } }
java
public static <T extends ExecutorService> T requireNotShutdown(final T executorService) { if (executorService.isShutdown()) { throw new IllegalArgumentException("ExecutorService is shutdown"); } return executorService; }
java
public static RootContainer getRootContainer(final EntityContainer container) { // Root must be identifable if (!(container instanceof Identifiable)) { return null; } EntityContainer parent = container instanceof Entity ? ((Entity) container).getContainer() : null; UUID rootID = null; // Check not root if...
java
protected void reset() { done.set(false); performing.set(false); cancelled.set(false); estimated.set(0L); }
java
public synchronized void start() throws Exception { if (running) { return; } List<Connector> startedConnectors = new ArrayList<Connector>(); for (Connector each : this.connectors) { try { each.setServer( this ); each.start(...
java
public synchronized void stop() throws Exception { if (!running) { return; } for (Connector each : this.connectors) { try { each.stop(); each.setServer( null ); } catch (Exception e) { // ignore } ...
java
@Override public void cancelAllScheduledForActor() { final Set<ActionContext<T>> toCancel; synchronized (contexts) { toCancel = new HashSet<>(contexts); contexts.clear(); } // Cancel all toCancel.forEach(cxt -> { if (!cxt.isDone()) { cxt.cancel(); } }); }
java
protected Future<?> getFuture() { long stamp = lock.tryOptimisticRead(); Future<?> future = this.future; if (!lock.validate(stamp)) { // Not valid so wait for read lock stamp = lock.readLock(); try { future = this.future; } finally { lock.unlockRead(stamp); } } return future; }
java
protected void setFuture(final Future<?> future) { final long stamp = lock.writeLock(); try { this.future = future; } finally { lock.unlockWrite(stamp); } }
java
public static Object defaultValue(final Class<?> type) { final Object value = WRAPPER_DEFAULTS.get(Objects.requireNonNull(type)); if (value == null) { throw new IllegalArgumentException("Not primitive wrapper"); } return value; }
java
public static Type firstGenericTypeArg(final Type pt) { return pt instanceof ParameterizedType ? ((ParameterizedType) pt).getActualTypeArguments()[0] : null; }
java
public static Supplier<UUID> getSingleIDSupplier(final Method m) throws IllegalArgumentException { // Check only has one ID max final EntityID[] entityIDs = m.getAnnotationsByType(EntityID.class); if (entityIDs.length > 1) { throw new IllegalArgumentException("Cannot have more than one entity ID"); } // Get ...
java
public static boolean returnTypeIs(final Method m, final Class<?> clazz) { return clazz.equals(toClass(m.getGenericReturnType())); }
java
public static Class<?> wrap(final Class<?> type) { if (!type.isPrimitive()) { throw new IllegalArgumentException("Not primitive"); } return PRIMITIVES_WRAPPERS.get(type); }
java
public boolean containsOfType(final Class<? extends Tag> type) { read.lock(); try { return tags.containsKey(type); } finally { read.unlock(); } }
java
@SuppressWarnings("unchecked") public <T extends Tag> Set<T> getOfType(final Class<T> type) { read.lock(); try { final Set<T> tagsOfType = (Set<T>) tags.get(type); return tagsOfType != null ? Collections.unmodifiableSet(tagsOfType) : Collections.emptySet(); } finally { read.unlock(); } }
java
public boolean removeOfType(final Class<? extends Tag> type) { write.lock(); try { return tags.remove(type) != null; } finally { write.unlock(); } }
java
public static <T extends Entity> Optional<T> anyEntityOfType(final EntityContainer container, final Class<T> type) { return container.streamEntitiesOfType(type).findAny(); }
java
public static boolean findEntityRecursively(final EntityContainer container, final UUID id) { final AtomicBoolean found = new AtomicBoolean(); walkEntityTree(container, e -> { if (id.equals(e.getID())) { found.set(true); return EntityVisitResult.EXIT; } else { return EntityVisitResult.CONTINUE; ...
java
public static EntityContainer getRootContainer(final EntityContainer container) { Objects.requireNonNull(container); if (container instanceof Entity) { final EntityContainer parent = ((Entity) container).getContainer(); if (parent != null) { return getRootContainer(parent); } } return container; ...
java
public static Predicate<Entity> isMarkedAsType(final Class<? extends Entity> type) { return i -> i.isMarkedAsType(type); }
java
public static boolean isOrSubtype(final Class<? extends Entity> descendant, final Class<? extends Entity> ancestor) { return ancestor.isAssignableFrom(descendant); }
java
public static boolean isSubtype(final Class<? extends Entity> descendant, final Class<? extends Entity> ancestor) { return !ancestor.equals(descendant) && ancestor.isAssignableFrom(descendant); }
java
public static <T> EntityListener newRecursiveAttributeListener(final NamedAttributeType<T> namedType, final Supplier<AttributeListener<T>> supplier) { return newRecursiveAttributeListener(namedType, supplier, Integer.MAX_VALUE); }
java
public static <T> EntityListener newRecursiveAttributeListener(final NamedAttributeType<T> namedType, final Supplier<AttributeListener<T>> supplier, final int depth) { if (depth <= 0) { throw new IllegalArgumentException(); } return new RecursiveAttributeListener<>(namedType, supplier, depth); }
java
public static EntityListener newRecursiveEntityListener(final Supplier<EntityListener> supplier, final int depth) { if (depth <= 0) { throw new IllegalArgumentException(); } return new RecursiveEntityListener(supplier, depth); }
java
@Override public boolean isEqual(String data1, String data2) { return LangUtils.isEqual(data1, data2); }
java
protected void handleHttpRequest(final ChannelHandlerContext channelContext, final HttpRequest request) throws Exception { if (isWebSocketsUpgradeRequest( request )) { final Handshake handshake = findHandshake( request ); if (handshake != null) { HttpResponse response ...
java
protected Handshake findHandshake(HttpRequest request) { for (Handshake handshake : this.handshakes) { if (handshake.matches( request )) { return handshake; } } return null; }
java
protected void reconfigureUpstream(ChannelPipeline pipeline, Handshake handshake) { pipeline.replace( "http-decoder", "websockets-decoder", handshake.newDecoder() ); ChannelHandler[] additionalHandlers = handshake.newAdditionalHandlers(); String currentTail = "websockets-decoder"; for (C...
java
protected boolean isWebSocketsUpgradeRequest(HttpRequest request) { String connectionHeader = request.getHeader( Names.CONNECTION ); String upgradeHeader = request.getHeader( Names.UPGRADE ); if (connectionHeader == null || upgradeHeader == null) { return false; } i...
java