Skip to content

Instantly share code, notes, and snippets.

@abeln
Last active February 5, 2019 23:08
Show Gist options
  • Save abeln/e7db55878014f27c90d1dfd2f5dc984e to your computer and use it in GitHub Desktop.
Save abeln/e7db55878014f27c90d1dfd2f5dc984e to your computer and use it in GitHub Desktop.
Java imports in Scala community build (+ dotty)
import java.io.File 282
import java.util.concurrent.TimeUnit 153
import java.io._ 115
import java.nio.ByteBuffer 96
import java.util.UUID 93
import java.io.InputStream 93
import java.util 92
import java.net.URI 85
import java.util.Date 85
import java.net.URL 76
import java.util.concurrent.atomic.AtomicInteger 75
import java.nio.charset.StandardCharsets._ 58
import java.util.concurrent.atomic.AtomicBoolean 56
import java.util.Optional 55
import java.util.Locale 52
import java.net.InetSocketAddress 48
import java.io.ByteArrayInputStream 47
import java.util.regex.Pattern 47
import java.sql.ResultSet 47
import java.lang.reflect.Method 46
import java.util.Arrays 46
import java.util.Calendar 44
import java.nio.file.Files 43
import java.io.IOException 42
import java.nio.file.Path 41
import java.nio.file.Paths 40
import java.math.BigInteger 40
import java.io.OutputStream 38
import java.time._ 38
import java.io.ByteArrayOutputStream 37
import java.nio.charset.Charset 36
import java.nio._ 34
import java.sql.PreparedStatement 34
import java.util.concurrent.ConcurrentHashMap 34
import java.io.PrintStream 33
import java.io.PrintWriter 32
import java.sql.Connection 31
import java.math.MathContext 29
import java.util.function.Supplier 28
import java.nio.charset.StandardCharsets 27
import java.util.concurrent.CompletionStage 27
import java.util.List 26
import java.util.Properties 26
import java.util.TimeZone 25
import java.io.BufferedReader 25
import java.io.Serializable 25
import java.util.Map 25
import java.sql._ 25
import java.util.concurrent.CountDownLatch 25
import java.util.concurrent._ 22
import java.time.format.DateTimeFormatter 21
import java.net.URLClassLoader 21
import java.util.Random 21
import java.util.concurrent.TimeoutException 21
import java.lang.StringBuilder 21
import java.net.InetAddress 21
import java.util.concurrent.atomic.AtomicLong 21
import java.util._ 20
import java.io.FileOutputStream 19
import java.io.FileWriter 19
import java.nio.file._ 19
import java.sql.Timestamp 18
import java.io.StringWriter 18
import java.io.InputStreamReader 18
import java.io.OutputStreamWriter 17
import java.util.concurrent.Executors 17
import java.io.FileInputStream 16
import java.util.function.Function ⇒ JFunction 16
import java.io.Reader 15
import java.lang.String 15
import java.sql.Types 15
import java.lang.reflect.Modifier 15
import java.lang 14
import java.nio.CharBuffer 14
import java.math.RoundingMode 14
import java.time.LocalDateTime 13
import java.util.concurrent.atomic.AtomicReference 13
import java.lang.Class 13
import javax.sql.DataSource 13
import java.math.BigDecimal 13
import java.util.concurrent.CompletableFuture 12
import java.io.Writer 12
import java.io.Console 12
import java.util.concurrent.ConcurrentLinkedQueue 12
import java.util.concurrent.ExecutorService 12
import java.sql.SQLException 11
import java.security.MessageDigest 11
import java.lang.Math 11
import java.sql.Date 11
import java.text.SimpleDateFormat 11
import java.util.concurrent.Executor 11
import java.io.Closeable 11
import java.io.BufferedWriter 11
import java.nio.charset.StandardCharsets.UTF_8 11
import java.time.Instant 11
import java.lang.reflect.Field 10
import java.io.StringReader 10
import java.io.FileNotFoundException 10
import java.lang.annotation._ 10
import java.lang.Iterable ⇒ JIterable 10
import java.lang.reflect.InvocationTargetException 10
import java.nio.charset._ 10
import java.lang.StringBuilder ⇒ JStringBuilder 9
import java.time.ZoneId 9
import javax.inject.Inject 9
import java.sql.Time 9
import java.util.function.BiFunction 9
import java.util.concurrent.atomic._ 9
import java.nio.ByteOrder 8
import java.util.NoSuchElementException 8
import java.sql.DriverManager 8
import javax.net.ssl.SSLContext 8
import java.util.Collection 8
import java.util.regex._ 8
import java.util.Base64 8
import java.sql.Blob 7
import java.util.zip.ZipFile 7
import java.util.logging.Logger 7
import java.util.List ⇒ JList 7
import java.time.LocalDate 7
import javax.servlet.http.HttpServletRequest 7
import java.time.{ 7
import java.util.Locale.ENGLISH 7
import java.util.Iterator 7
import java.time.temporal.ChronoUnit 7
import java.time.temporal.ChronoField 7
import java.util.Set 7
import java.security.SecureRandom 7
import java.text.DecimalFormat 6
import java.time.Duration 6
import java.lang.reflect.Proxy 6
import java.util.concurrent.ThreadLocalRandom 6
import java.time.LocalTime 6
import java.lang.reflect.Constructor 6
import java.util.HashMap 6
import javax.inject.Singleton 6
import java.util.concurrent.ThreadFactory 6
import java.util.zip.ZipEntry 6
import java.util.zip._ 6
import java.time.format.DateTimeFormatterBuilder 6
import java.io.ObjectInputStream 6
import java.lang.Object 6
import java.io.ObjectOutputStream 6
import java.util.concurrent.Callable 6
import java.lang.ref.WeakReference 6
import java.util.Comparator 6
import java.nio.channels.ReadableByteChannel 6
import java.lang.Double 5
import java.lang.annotation.Annotation 5
import java.lang.management.ManagementFactory 5
import java.net.URISyntaxException 5
import javax.servlet._ 5
import java.lang.reflect.ParameterizedType 5
import java.util.ArrayList 5
import java.util.function.Consumer 5
import java.util.concurrent.atomic.AtomicReferenceArray 5
import java.nio.file.FileSystems 5
import java.sql.Array 5
import java.lang.reflect.Type 5
import java.net.URLDecoder 5
import java.util.ResourceBundle 5
import java.math._ 5
import java.util.OptionalLong 5
import java.time.ZoneOffset 5
import java.sql.Statement 5
import java.lang.Float.intBitsToFloat 5
import java.io.BufferedInputStream 5
import java.util.concurrent.CompletionException 5
import javax.servlet.http._ 5
import java.lang.Double.longBitsToDouble 5
import java.util.function.Function 5
import java.sql.DatabaseMetaData 4
import javax.naming.InitialContext 4
import java.net._ 4
import java.io.DataOutputStream 4
import java.time.format.DateTimeFormatter.{ 4
import java.net.URLEncoder 4
import java.lang.Thread.UncaughtExceptionHandler 4
import java.util.concurrent.CancellationException 4
import java.nio.file.attribute.BasicFileAttributes 4
import java.util.stream.Stream 4
import java.util.stream._ 4
import java.util.zip.ZipInputStream 4
import java.net.HttpURLConnection 4
import java.nio.BufferOverflowException 4
import java.lang.Long 4
import java.lang.Character._ 4
import java.lang.Integer 4
import java.time.OffsetDateTime 4
import java.lang.Iterable 4
import java.lang.System 4
import javax.net.ssl.SSLSession 4
import java.util ⇒ ju 4
import java.lang.reflect 4
import java.sql.Driver 4
import java.util.function 4
import java.util.LinkedList 4
import java.time.ZonedDateTime 4
import javax.net.ssl.SSLParameters 4
import java.lang.Float 4
import java.lang.reflect.InvocationHandler 4
import java.util.concurrent.ScheduledExecutorService 4
import java.util.Collections 4
import java.text.ParseException 4
import java.util.concurrent.ExecutionException 4
import java.net.MalformedURLException 4
import java.nio.charset.CodingErrorAction 4
import java.util.zip.GZIPOutputStream 4
import java.util.Enumeration 3
import java.util.AbstractMap.SimpleImmutableEntry 3
import java.net.ServerSocket 3
import java.util.concurrent.CyclicBarrier 3
import java.util.TimerTask 3
import java.util.Formatter 3
import javax.management.ObjectName 3
import java.security.KeyStore 3
import java.util.zip.Deflater 3
import java.lang.ref.ReferenceQueue 3
import java.lang.Double.isNaN 3
import java.util.concurrent.atomic.AtomicLongArray 3
import java.util.EnumSet 3
import java.util.concurrent.LinkedBlockingQueue 3
import java.util.jar.Manifest 3
import java.util.logging.Level 3
import java.nio.file.attribute.FileTime 3
import java.util.concurrent.RejectedExecutionException 3
import java.util.WeakHashMap 3
import java.util.Vector 3
import java.sql.Clob 3
import java.net.HttpCookie 3
import java.time.Period 3
import java.io.UnsupportedEncodingException 3
import java.util.concurrent.BlockingQueue 3
import java.util.regex.Matcher 3
import java.io.{ 3
import java.util.concurrent.ThreadPoolExecutor 3
import java.lang.StackOverflowError 3
import java.util.jar.JarEntry 3
import javax.net.ssl._ 3
import javax.sql.rowset.serial.SerialBlob 3
import java.util.jar.JarFile 3
import java.util.StringTokenizer 3
import java.util.Map ⇒ JMap 3
import java.io.PrintWriter; 3
import java.util.zip.GZIPInputStream 3
import java.util.Currency 3
import java.util.concurrent.ArrayBlockingQueue 3
import java.util.Timer 3
import javax.tools.ToolProvider 2
import javax.xml.parsers.SAXParserFactory 2
import java.nio.file._ // Imports `Files` 2
import javax.net.ssl.SSLEngine 2
import java.lang.Long.numberOfTrailingZeros 2
import java.util.Collection ⇒ JCollection 2
import java.io.File.separator 2
import javax.servlet.http.HttpServletResponse 2
import java.lang._ 2
import java.net.SocketException 2
import java.lang ⇒ jl 2
import java.io.FileReader 2
import java.sql.JDBCType 2
import java.io.FilterInputStream 2
import java.lang.System.arraycopy 2
import java.util.zip.Inflater 2
import java.time.MonthDay 2
import java.lang.IllegalArgumentException 2
import java.time.Year 2
import java.nio.file.StandardCopyOption.REPLACE_EXISTING 2
import javax.naming.Context 2
import java.security.cert.CertificateFactory 2
import java.time.temporal.TemporalAccessor 2
import java.util.HashSet 2
import javax.net.ssl.TrustManagerFactory 2
import java.math.MathContext.UNLIMITED 2
import java.util.regex.Matcher.quoteReplacement 2
import java.security._ 2
import java.lang.Short 2
import java.util.concurrent.locks.AbstractQueuedSynchronizer 2
import java.io.DataInputStream 2
import java.util.concurrent.Semaphore 2
import java.lang.Byte 2
import java.nio.charset.MalformedInputException 2
import java.util.LinkedHashMap 2
import java.util.regex.Pattern._ 2
import java.util.function.BiConsumer 2
import java.text.DecimalFormatSymbols 2
import java.lang.ProcessBuilder 2
import java.sql.SQLWarning 2
import java.nio.channels._ 2
import java.util.concurrent.locks._ 2
import java.nio.ReadOnlyBufferException 2
import java.lang.Thread.State 2
import java.lang.System.currentTimeMillis 2
import java.lang.NullPointerException 2
import java.security.cert.Certificate 2
import java.lang.Thread.State._ 2
import java.util.jar.JarOutputStream 2
import java.util.concurrent.ConcurrentMap 2
import javax.net.ssl.KeyManagerFactory 2
import java.nio.channels.FileChannel 2
import java.util.prefs.BackingStoreException 2
import java.lang.System; // to avoid name clash with .NET's library 2
import java.util.concurrent.TimeUnit._ 2
import java.io.StringBufferInputStream 2
import java.util.zip.ZipException 2
import java.util.Objects 2
import java.time.temporal.Temporal 2
import java.lang.Boolean 2
import java.util.IdentityHashMap 2
import java.util.regex.PatternSyntaxException 2
import java.util.function.Predicate 2
import java.text.NumberFormat 2
import java.lang.{ Integer => JInteger, Long => JLong, Boolean => JBoolean, 2
import java.lang.reflect._ 2
import java.lang.Comparable 2
import java.util.function.IntConsumer 2
import java.io.FileFilter 2
import java.lang.Cloneable 2
import java.time.OffsetTime 2
import java.security.cert.X509Certificate 2
import java.lang.reflect.Modifier._ 2
import java.lang.Thread 2
import java.lang.Double.doubleToLongBits 2
import java.net.Proxy 2
import java.net.ProtocolException 2
import java.net.JarURLConnection 2
import java.util.Spliterator 2
import java.util.GregorianCalendar 2
import java.nio.file.StandardWatchEventKinds._ 1
import java.time.temporal.TemporalUnit 1
import java.util.jar._ 1
import java.util.stream.Collectors 1
import java.lang.Long.toHexString 1
import java.util.function.IntUnaryOperator 1
import java.util.Collections.EMPTY_MAP 1
import java.nio.channels.ServerSocketChannel 1
import java.nio.file.StandardOpenOption 1
import java.util.function.IntPredicate 1
import java.util.logging.LogManager 1
import javax.net.ssl.HostnameVerifier 1
import java.io.IOException; 1
import java.nio.charset.CoderResult 1
import javax.mail.internet.MimeMultipart 1
import java.lang.reflect.Modifier.isFinal 1
import java.lang.Character 1
import java.lang.Character.LOWERCASE_LETTER 1
import javax.net.ssl.HttpsURLConnection 1
import java.security.DigestInputStream 1
import java.util.concurrent.ThreadPoolExecutor.AbortPolicy 1
import java.io.{OutputStream, PrintStream}; 1
import javax.servlet.ServletResponse 1
import java.nio.charset.StandardCharsets.ISO_8859_1 1
import java.lang.invoke._ 1
import java.util.concurrent.TimeUnit.MINUTES 1
import java.nio.file.attribute._ 1
import java.nio.file.NoSuchFileException 1
import java.util.List; 1
import java.nio.charset.CharacterCodingException 1
import java.lang.ClassLoader 1
import java.nio.file.PathMatcher 1
import java.io.File.pathSeparator 1
import java.lang.Character.UPPERCASE_LETTER 1
import java.nio.channels.Channels 1
import java.security.AccessControlException 1
import java.util.logging.Formatter 1
import java.lang.Math.sqrt 1
import javax.management.Notification 1
import java.time.zone.ZoneRulesException 1
import java.util.PrimitiveIterator 1
import javax.crypto.Mac 1
import java.util.zip.InflaterInputStream 1
import java.lang.reflect.Member 1
import java.security.DigestOutputStream 1
import java.security.Principal 1
import javax.management.NotificationListener 1
import java.lang.Character.LETTER_NUMBER 1
import java.util.function ⇒ jf 1
import java.lang.Boolean.getBoolean 1
import java.nio.file.attribute.PosixFilePermissions 1
import java.io.File.separatorChar 1
import java.net.Inet4Address 1
import java.lang.InheritableThreadLocal 1
import java.net.NetPermission 1
import java.nio.file.StandardOpenOption._ 1
import java.lang.Thread._ 1
import java.time.YearMonth 1
import java.lang.management.RuntimeMXBean 1
import java.time.DateTimeException 1
import java.util.logging.LogRecord 1
import java.util.concurrent._, atomic.AtomicInteger 1
import java.util.function.Function ⇒ JF 1
import java.io.DataOutput 1
import java.nio.file.StandardCopyOption 1
import java.text.MessageFormat 1
import java.io.EOFException 1
import java.nio.file.attribute.PosixFileAttributes 1
import java.net.URLConnection 1
import java.lang.Thread.holdsLock 1
import java.net.DatagramPacket 1
import java.util.regex.Matcher._ 1
import java.io._; 1
import javax.servlet.http.Cookie 1
import javax.servlet.ServletContext 1
import java.util.concurrent.CopyOnWriteArrayList 1
import java.lang.management.ClassLoadingMXBean 1
import javax.management._ 1
import java.lang.reflect.AccessibleObject 1
import java.util.concurrent.TimeUnit.SECONDS 1
import java.io.{File => JFile, _}, StreamTokenizer.TT_EOF 1
import java.util.Optional; 1
import java.util.Arrays.deepEquals 1
import java.util.SplittableRandom 1
import java.lang.ref.{ReferenceQueue, SoftReference}; 1
import java.io.DataInput 1
import java.security.PublicKey 1
import java.lang.Character.isDigit 1
import java.util.Foo 1
import java.nio.charset 1
import javax.crypto.Cipher 1
import java.net.BindException 1
import java.util.jar.Attributes 1
import java.lang.ArithmeticException 1
import java.util._ // here is a comment 1
import java.util.concurrent.TimeUnit.MICROSECONDS 1
import java.util.Arrays.copyOf 1
import java.sql.ResultSetMetaData 1
import java.net.SocketAddress 1
import java.util.Arrays.deepHashCode 1
import java.util.OptionalInt 1
import javax.servlet.ServletRequest 1
import java.util.concurrent.TimeUnit.HOURS 1
import java.util.Arrays._ 1
import javax.net.ssl.SSLException 1
import java.sql.Connection._ 1
import java.nio.file.OpenOption 1
import java.util.zip.CRC32 1
import java.util.concurrent.ForkJoinPool 1
import java.time.temporal.UnsupportedTemporalTypeException 1
import java.lang.Float.floatToIntBits 1
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater 1
import java.util.function.BiPredicate 1
import java.util.regex.MatchResult 1
import java.lang.Long.numberOfLeadingZeros 1
import java.time.Clock 1
import java.time.format.DateTimeParseException 1
import java.lang.Math.max 1
import java.lang.ProcessBuilder.Redirect 1
import java.util.EventObject 1
import java.security.SecurityPermission 1
import java.util.zip.DataFormatException 1
import javax.crypto.spec.SecretKeySpec 1
import java.util.regex.Pattern.compile 1
import javax.servlet.http.HttpServlet 1
import javax.mail._ 1
import java.util.ListIterator 1
import java.util.prefs.Preferences 1
import java.nio.MappedByteBuffer 1
import java.util.{List => JavaList, Iterator => JavaIterator, ArrayList, 1
import java.nio.charset.CharsetDecoder 1
import java.util.concurrent.atomic.AtomicLongFieldUpdater 1
import java.lang.Math._ 1
import java.beans.Introspector 1
import java.net.Inet6Address 1
import java.util.OptionalDouble 1
import java.lang.Character.OTHER_LETTER 1
import javax.management.openmbean.CompositeData 1
import javax.management.NotificationEmitter 1
import javax.xml.parsers.SAXParser 1
import javax.net.ssl.SSLSocketFactory 1
import java.util.concurrent.locks.ReentrantLock 1
import java.util.zip.ZipOutputStream 1
import java.lang.Integer.toHexString 1
import java.nio.charset.CharsetEncoder 1
import java.net.Socket 1
import java.util.PriorityQueue 1
import java.util.concurrent.TimeUnit.DAYS 1
import java.util.concurrent.TimeUnit.NANOSECONDS 1
import java.util.Observable 1
import java.net.UnknownHostException 1
import java.io.{DataOutputStream, InputStream, BufferedReader, InputStreamReader, ByteArrayInputStream, 1
import java.lang.Integer.numberOfTrailingZeros 1
import javax.xml.XMLConstants 1
import java.lang.management.MemoryMXBean 1
import java.util.concurrent.Future 1
import javax.xml.bind.DatatypeConverter._ 1
import java.io.StreamTokenizer 1
import java.util.concurrent.FutureTask 1
import java.security.cert.CertificateException 1
import java.nio.file.FileSystemAlreadyExistsException 1
import java.util.concurrent.atomic.AtomicIntegerArray 1
import javax.net.ssl.TrustManager 1
import javax.mail.internet._ 1
import java.lang.management.ThreadInfo 1
import java.util.concurrent.ConcurrentSkipListSet 1
import java.lang.Integer.highestOneBit 1
import javax.crypto.spec._ 1
import java.sql 1
import java.nio.file.ClosedWatchServiceException 1
import java.lang.ref._ 1
import java.nio.channels.ByteChannel 1
import java.nio.file.WatchService 1
import java.lang.Double.isInfinite 1
import java.lang.Process 1
import java.nio.channels.SocketChannel 1
import javax.mail.internet.MimeMessage 1
import javax.tools.StandardLocation 1
import java.nio.InvalidMarkException 1
import java.util.Base64.Decoder 1
import java.lang.Integer.bitCount 1
import java.lang.management.GarbageCollectorMXBean 1
import java.lang.SecurityException 1
import java.lang.Integer.rotateLeft 1
import java.lang.System.lineSeparator 1
import java.lang.Math.min 1
import java.sql.DriverPropertyInfo 1
import javax.crypto._ 1
import javax.management.InstanceNotFoundException 1
import java.lang.Integer.toOctalString 1
import java.util.concurrent.ScheduledThreadPoolExecutor 1
import java.beans.Transient 1
import javax.xml.parsers.DocumentBuilderFactory 1
import java.io.FileDescriptor 1
import java.io. _ 1
import java.lang.Character.TITLECASE_LETTER 1
import java.nio.file.attribute.PosixFilePermission 1
import javax.net.ssl.X509TrustManager 1
import java.lang.Integer.numberOfLeadingZeros 1
import java.security.Permission 1
import java.util.PropertyPermission 1
import java.lang.reflect.GenericArrayType 1
import java.io.RandomAccessFile 1
import java.nio.BufferUnderflowException 1
import java.lang.management.CompilationMXBean 1
import java.lang.ExceptionInInitializerError 1
import java.nio.file.FileAlreadyExistsException 1
import java.net.DatagramSocket 1
import java.util.logging.ConsoleHandler 1
import java.lang.ThreadLocal 1
import java.util.concurrent.Phaser 1
import java.util.concurrent.TimeUnit.MILLISECONDS 1
import java.util.function.BooleanSupplier 1
import java.util.jar.Attributes.Name 1
import java.io.FilePermission 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment