Organize imports with common layout (bisq-network/style#2)

This commit is contained in:
Chris Beams 2018-03-14 21:02:11 +01:00
parent a0ace4a05c
commit 6e60f0aa74
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
19 changed files with 80 additions and 68 deletions

View File

@ -13,10 +13,16 @@
</option> </option>
<option name="IMPORT_LAYOUT_TABLE"> <option name="IMPORT_LAYOUT_TABLE">
<value> <value>
<package name="bisq.desktop" withSubpackages="true" static="false" />
<emptyLine />
<package name="bisq.monitor" withSubpackages="true" static="false" /> <package name="bisq.monitor" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="bisq.price" withSubpackages="true" static="false" />
<emptyLine />
<package name="bisq.statistics" withSubpackages="true" static="false" />
<emptyLine />
<package name="bisq.seednode" withSubpackages="true" static="false" />
<emptyLine />
<package name="bisq.desktop" withSubpackages="true" static="false" />
<emptyLine />
<package name="bisq.core" withSubpackages="true" static="false" /> <package name="bisq.core" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="bisq.network" withSubpackages="true" static="false" /> <package name="bisq.network" withSubpackages="true" static="false" />
@ -29,7 +35,7 @@
<emptyLine /> <emptyLine />
<package name="net.gpedro.integrations.slack" withSubpackages="true" static="false" /> <package name="net.gpedro.integrations.slack" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="org.springframework" withSubpackages="true" static="false" /> <package name="org.knowm.xchange" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="org.libdohj" withSubpackages="true" static="false" /> <package name="org.libdohj" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
@ -39,17 +45,23 @@
<emptyLine /> <emptyLine />
<package name="net.glxn.qrgen" withSubpackages="true" static="false" /> <package name="net.glxn.qrgen" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="org.springframework" withSubpackages="true" static="false" />
<emptyLine />
<package name="org.apache.http" withSubpackages="true" static="false" /> <package name="org.apache.http" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="javax.servlet" withSubpackages="true" static="false" />
<emptyLine />
<package name="org.berndpruenster.netlayer" withSubpackages="true" static="false" /> <package name="org.berndpruenster.netlayer" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="com.runjva" withSubpackages="true" static="false" /> <package name="com.runjva" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="com.fasterxml" withSubpackages="true" static="false" /> <package name="com.googlecode.jcsv" withSubpackages="true" static="false" />
<emptyLine />
<package name="com.fasterxml.jackson" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="com.google.gson" withSubpackages="true" static="false" /> <package name="com.google.gson" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="com.googlecode.jcsv" withSubpackages="true" static="false" /> <package name="org.json.simple" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="joptsimple" withSubpackages="true" static="false" /> <package name="joptsimple" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
@ -107,26 +119,26 @@
<emptyLine /> <emptyLine />
<package name="org.bouncycastle" withSubpackages="true" static="false" /> <package name="org.bouncycastle" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="java.security" withSubpackages="true" static="false" />
<emptyLine />
<package name="javax.crypto" withSubpackages="true" static="false" /> <package name="javax.crypto" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="java.nio" withSubpackages="true" static="false" /> <package name="java.security" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="java.io" withSubpackages="true" static="false" /> <package name="java.time" withSubpackages="true" static="false" />
<emptyLine />
<package name="java.text" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="javax.net" withSubpackages="true" static="false" /> <package name="javax.net" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="java.net" withSubpackages="true" static="false" /> <package name="java.net" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="java.text" withSubpackages="true" static="false" /> <package name="java.nio" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="java.util" withSubpackages="true" static="false" /> <package name="java.io" withSubpackages="true" static="false" />
<emptyLine />
<package name="java.time" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="java.math" withSubpackages="true" static="false" /> <package name="java.math" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="java.util" withSubpackages="true" static="false" />
<emptyLine />
<package name="java.lang" withSubpackages="true" static="false" /> <package name="java.lang" withSubpackages="true" static="false" />
<emptyLine /> <emptyLine />
<package name="org.slf4j" withSubpackages="true" static="false" /> <package name="org.slf4j" withSubpackages="true" static="false" />

View File

@ -29,10 +29,10 @@ import javax.inject.Inject;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.io.IOException;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;

View File

@ -122,11 +122,11 @@ import javafx.collections.SetChangeListener;
import java.security.Security; import java.security.Security;
import java.io.IOException;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
import java.net.Socket; import java.net.Socket;
import java.io.IOException;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;

View File

@ -45,13 +45,13 @@ import javafx.scene.layout.GridPane;
import javafx.beans.value.ChangeListener; import javafx.beans.value.ChangeListener;
import java.text.SimpleDateFormat;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import javax.annotation.Nullable; import javax.annotation.Nullable;

View File

@ -50,16 +50,16 @@ import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.value.ChangeListener; import javafx.beans.value.ChangeListener;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.time.Instant; import java.time.Instant;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.ZoneId; import java.time.ZoneId;
import java.time.ZoneOffset; import java.time.ZoneOffset;
import java.io.File;
import java.io.IOException;
import java.util.List;
import static bisq.desktop.util.FormBuilder.*; import static bisq.desktop.util.FormBuilder.*;
import static javafx.beans.binding.Bindings.createBooleanBinding; import static javafx.beans.binding.Bindings.createBooleanBinding;

View File

@ -109,17 +109,17 @@ import javafx.collections.transformation.SortedList;
import javafx.util.Callback; import javafx.util.Callback;
import java.io.File; import java.text.DateFormat;
import java.io.FileOutputStream; import java.text.ParseException;
import java.io.IOException; import java.text.SimpleDateFormat;
import java.io.InputStream;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
import java.text.DateFormat; import java.io.File;
import java.text.ParseException; import java.io.FileOutputStream;
import java.text.SimpleDateFormat; import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;

View File

@ -44,15 +44,15 @@ import javafx.collections.FXCollections;
import javafx.collections.ListChangeListener; import javafx.collections.ListChangeListener;
import javafx.collections.ObservableList; import javafx.collections.ObservableList;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import java.math.BigDecimal;
import java.math.RoundingMode;
class SpreadViewModel extends ActivatableViewModel { class SpreadViewModel extends ActivatableViewModel {
private final OfferBook offerBook; private final OfferBook offerBook;

View File

@ -59,6 +59,11 @@ import javafx.collections.SetChangeListener;
import javafx.util.Pair; import javafx.util.Pair;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
@ -69,11 +74,6 @@ import java.util.Optional;
import java.util.Set; import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit;
class TradesChartsViewModel extends ActivatableViewModel { class TradesChartsViewModel extends ActivatableViewModel {
private static final int TAB_INDEX = 2; private static final int TAB_INDEX = 2;

View File

@ -113,10 +113,10 @@ import javafx.collections.FXCollections;
import javafx.util.StringConverter; import javafx.util.StringConverter;
import java.io.ByteArrayInputStream;
import java.net.URI; import java.net.URI;
import java.io.ByteArrayInputStream;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;

View File

@ -100,10 +100,10 @@ import org.fxmisc.easybind.Subscription;
import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.value.ChangeListener; import javafx.beans.value.ChangeListener;
import java.io.ByteArrayInputStream;
import java.net.URI; import java.net.URI;
import java.io.ByteArrayInputStream;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;

View File

@ -62,13 +62,13 @@ import javafx.collections.FXCollections;
import javafx.util.StringConverter; import javafx.util.StringConverter;
import java.net.URI;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.net.URI;
import java.util.Arrays; import java.util.Arrays;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;

View File

@ -68,16 +68,16 @@ import javafx.beans.value.ChangeListener;
import org.spongycastle.crypto.params.KeyParameter; import org.spongycastle.crypto.params.KeyParameter;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import java.time.Instant; import java.time.Instant;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.ZoneId; import java.time.ZoneId;
import java.time.ZoneOffset; import java.time.ZoneOffset;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import static bisq.desktop.util.FormBuilder.addButton; import static bisq.desktop.util.FormBuilder.addButton;

View File

@ -24,14 +24,14 @@ import com.google.common.collect.Lists;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import java.net.URL;
import java.net.URLConnection;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;

View File

@ -46,13 +46,13 @@ import org.apache.commons.lang3.time.DurationFormatUtils;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import java.math.BigDecimal;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -77,6 +77,10 @@ import javafx.beans.property.DoubleProperty;
import javafx.util.StringConverter; import javafx.util.StringConverter;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.io.File; import java.io.File;
@ -84,10 +88,6 @@ import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStreamWriter; import java.io.OutputStreamWriter;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;

View File

@ -20,10 +20,10 @@ package bisq.desktop.util.validation;
import bisq.core.locale.Res; import bisq.core.locale.Res;
import bisq.core.util.validation.InputValidator; import bisq.core.util.validation.InputValidator;
import java.util.Locale;
import java.math.BigInteger; import java.math.BigInteger;
import java.util.Locale;
// TODO Does not yet recognize special letters like ä, ö, ü, å, ... as invalid characters // TODO Does not yet recognize special letters like ä, ö, ü, å, ... as invalid characters
public final class IBANValidator extends InputValidator { public final class IBANValidator extends InputValidator {

View File

@ -42,13 +42,13 @@ import org.bouncycastle.jce.provider.BouncyCastleProvider;
import java.security.Security; import java.security.Security;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashSet; import java.util.HashSet;

View File

@ -49,13 +49,13 @@ import javafx.beans.property.SimpleIntegerProperty;
import javafx.collections.FXCollections; import javafx.collections.FXCollections;
import javafx.collections.ObservableList; import javafx.collections.ObservableList;
import java.time.Instant;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.time.Instant;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -21,10 +21,10 @@ import bisq.desktop.main.overlays.windows.downloadupdate.BisqInstaller.FileDescr
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import java.io.File;
import java.net.URL; import java.net.URL;
import java.io.File;
import java.util.List; import java.util.List;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;