- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {OutputStreamWriter o =
OutputStream out;new OutputStreamWriter(out)
OutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
HttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
- Smart code suggestions by Codota
}
private ArtifactId createArtifactId(final Manifest manifest) throws IllegalArgumentException { final Attributes attributes = manifest.getMainAttributes(); final String groupId = attributes.getValue(Attributes.Name.IMPLEMENTATION_VENDOR_ID); final String artifactId = attributes.getValue(Attributes.Name.IMPLEMENTATION_TITLE); final String version = attributes.getValue(Attributes.Name.IMPLEMENTATION_VERSION); final ArtifactId id = ArtifactId .create(groupId, artifactId, version, archiveType, classifier); return id; }
private static Artifact createArtifact(final ArtifactId artifactId) { final DefaultArtifact artifact = new DefaultArtifact(artifactId.getGroupId(), artifactId.getName(), artifactId.getClassifier(), artifactId.getArchiveType(), artifactId.getVersion()); return artifact; }
artifactRef.getId().toString() + ':' + url.toExternalForm();