Skip to content

Commit

Permalink
Reformat imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubenicos committed Nov 4, 2024
1 parent 4086597 commit 46b1d06
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,27 @@
import com.saicone.settings.node.ListNode;
import com.saicone.settings.node.MapNode;
import com.saicone.settings.node.NodeKey;
import com.typesafe.config.*;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import com.typesafe.config.ConfigList;
import com.typesafe.config.ConfigObject;
import com.typesafe.config.ConfigParseOptions;
import com.typesafe.config.ConfigRenderOptions;
import com.typesafe.config.ConfigResolveOptions;
import com.typesafe.config.ConfigValue;
import com.typesafe.config.ConfigValueFactory;
import com.typesafe.config.ConfigValueType;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.util.*;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
* A settings source for hocon-formatted data<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
import org.yaml.snakeyaml.comments.CommentLine;
import org.yaml.snakeyaml.comments.CommentType;
import org.yaml.snakeyaml.constructor.Constructor;
import org.yaml.snakeyaml.nodes.*;
import org.yaml.snakeyaml.nodes.AnchorNode;
import org.yaml.snakeyaml.nodes.MappingNode;
import org.yaml.snakeyaml.nodes.Node;
import org.yaml.snakeyaml.nodes.NodeTuple;
import org.yaml.snakeyaml.nodes.ScalarNode;
import org.yaml.snakeyaml.nodes.SequenceNode;
import org.yaml.snakeyaml.nodes.Tag;
import org.yaml.snakeyaml.representer.Representer;

import java.io.IOException;
Expand Down
12 changes: 11 additions & 1 deletion src/main/java/com/saicone/settings/SettingsData.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.io.*;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.Writer;
import java.net.URL;
import java.net.URLConnection;
import java.nio.file.Files;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/saicone/settings/SettingsNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import com.saicone.settings.node.MapNode;
import com.saicone.settings.node.NodeKey;
import com.saicone.settings.node.ObjectNode;
import com.saicone.types.ValueType;
import com.saicone.settings.util.Strings;
import com.saicone.types.ValueType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/saicone/settings/data/DataFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
import org.jetbrains.annotations.Nullable;

import java.lang.reflect.InvocationTargetException;
import java.util.*;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

/**
* Utility class to collect supported data formats and register any settings source parser.
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/saicone/settings/node/ListNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

Expand Down
12 changes: 10 additions & 2 deletions src/main/java/com/saicone/settings/node/MapNode.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
package com.saicone.settings.node;

import com.saicone.settings.SettingsNode;
import com.saicone.settings.util.Strings;
import com.saicone.types.IterableType;
import com.saicone.types.ValueType;
import com.saicone.settings.util.Strings;
import org.intellij.lang.annotations.Language;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.*;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.StringJoiner;
import java.util.function.BiPredicate;
import java.util.function.Function;
import java.util.function.Predicate;
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/saicone/settings/node/NodeValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.*;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;

/**
* Abstract class that represents a node multi-layer value along with comments.<br>
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/saicone/settings/parser/Expressions.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
import com.saicone.settings.parser.impl.MathExpression;
import org.jetbrains.annotations.NotNull;

import java.util.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;

/**
* Utility class to collect node expressions that can be parsed.
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/saicone/settings/type/ListValueType.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import com.saicone.types.ValueType;
import org.jetbrains.annotations.NotNull;

import java.util.*;
import java.util.Collection;
import java.util.List;
import java.util.UUID;

/**
* Represents a value that can be converted into different types of objects.
Expand Down

0 comments on commit 46b1d06

Please sign in to comment.