diff --git a/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/Env.java b/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/Env.java index d8527ce4..4eaf026d 100644 --- a/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/Env.java +++ b/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/Env.java @@ -5,7 +5,6 @@ import org.json.simple.JSONObject; import org.spongycastle.util.encoders.Hex; import java.math.BigInteger; -import java.util.Arrays; /** * www.ethereumJ.com diff --git a/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/Exec.java b/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/Exec.java index 9fe15074..2b80688e 100644 --- a/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/Exec.java +++ b/ethereumj-core/src/main/java/org/ethereum/jsontestsuite/Exec.java @@ -1,12 +1,10 @@ package org.ethereum.jsontestsuite; import org.ethereum.util.ByteUtil; -import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.spongycastle.util.encoders.Hex; import java.math.BigInteger; -import java.util.Arrays; /** * www.ethereumJ.com diff --git a/ethereumj-core/src/main/java/org/ethereum/net/EthereumMessageSizeEstimator.java b/ethereumj-core/src/main/java/org/ethereum/net/EthereumMessageSizeEstimator.java index 034905c0..b594de3a 100644 --- a/ethereumj-core/src/main/java/org/ethereum/net/EthereumMessageSizeEstimator.java +++ b/ethereumj-core/src/main/java/org/ethereum/net/EthereumMessageSizeEstimator.java @@ -1,11 +1,7 @@ package org.ethereum.net; import io.netty.buffer.ByteBuf; -import io.netty.buffer.ByteBufHolder; -import io.netty.buffer.UnpooledUnsafeDirectByteBuf; -import io.netty.channel.FileRegion; import io.netty.channel.MessageSizeEstimator; -import org.spongycastle.util.encoders.Hex; /** * www.ethereumJ.com diff --git a/ethereumj-core/src/main/java/org/ethereum/trie/Cache.java b/ethereumj-core/src/main/java/org/ethereum/trie/Cache.java index db740bde..6c4b2402 100644 --- a/ethereumj-core/src/main/java/org/ethereum/trie/Cache.java +++ b/ethereumj-core/src/main/java/org/ethereum/trie/Cache.java @@ -1,6 +1,5 @@ package org.ethereum.trie; -import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; diff --git a/ethereumj-core/src/main/java/org/ethereum/trie/CountAllNodes.java b/ethereumj-core/src/main/java/org/ethereum/trie/CountAllNodes.java index 57fa139f..581f9b1b 100644 --- a/ethereumj-core/src/main/java/org/ethereum/trie/CountAllNodes.java +++ b/ethereumj-core/src/main/java/org/ethereum/trie/CountAllNodes.java @@ -2,9 +2,6 @@ package org.ethereum.trie; import org.ethereum.util.Value; -import java.util.HashSet; -import java.util.Set; - /** * www.ethereumJ.com * diff --git a/ethereumj-core/src/main/java/org/ethereum/util/LRUMap.java b/ethereumj-core/src/main/java/org/ethereum/util/LRUMap.java index 0494a2a4..0a270e01 100644 --- a/ethereumj-core/src/main/java/org/ethereum/util/LRUMap.java +++ b/ethereumj-core/src/main/java/org/ethereum/util/LRUMap.java @@ -1,9 +1,6 @@ package org.ethereum.util; -import java.util.LinkedHashMap; -import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentSkipListMap; /** * Simple LRU map used for reusing lookup values. diff --git a/ethereumj-studio/src/main/java/org/ethereum/gui/AccountsListWindow.java b/ethereumj-studio/src/main/java/org/ethereum/gui/AccountsListWindow.java index 2f5b7840..09899057 100755 --- a/ethereumj-studio/src/main/java/org/ethereum/gui/AccountsListWindow.java +++ b/ethereumj-studio/src/main/java/org/ethereum/gui/AccountsListWindow.java @@ -1,10 +1,8 @@ package org.ethereum.gui; -import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.Image; import java.awt.Toolkit; -import java.math.BigInteger; import java.util.ArrayList; import java.util.List; @@ -14,7 +12,6 @@ import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.table.AbstractTableModel; -import org.ethereum.core.Account; import org.ethereum.core.AccountState; import org.ethereum.core.Denomination; import org.ethereum.crypto.HashUtil; diff --git a/ethereumj-studio/src/main/java/org/ethereum/gui/ConnectionConsoleWindow.java b/ethereumj-studio/src/main/java/org/ethereum/gui/ConnectionConsoleWindow.java index d2f4e998..e395a93f 100644 --- a/ethereumj-studio/src/main/java/org/ethereum/gui/ConnectionConsoleWindow.java +++ b/ethereumj-studio/src/main/java/org/ethereum/gui/ConnectionConsoleWindow.java @@ -11,8 +11,6 @@ import org.ethereum.net.PeerListener; import org.ethereum.net.client.ClientPeer; import org.fife.ui.rsyntaxtextarea.*; import org.fife.ui.rtextarea.RTextScrollPane; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * A simple example showing how to modify the fonts and colors used in an @@ -27,7 +25,6 @@ import org.slf4j.LoggerFactory; */ public class ConnectionConsoleWindow extends JFrame implements PeerListener { - private Logger logger = LoggerFactory.getLogger(getClass()); private static final long serialVersionUID = 1L; private boolean autoScroll = false; diff --git a/ethereumj-studio/src/main/java/org/ethereum/gui/ProgramPlayDialog.java b/ethereumj-studio/src/main/java/org/ethereum/gui/ProgramPlayDialog.java index b3e4c128..08356788 100755 --- a/ethereumj-studio/src/main/java/org/ethereum/gui/ProgramPlayDialog.java +++ b/ethereumj-studio/src/main/java/org/ethereum/gui/ProgramPlayDialog.java @@ -3,7 +3,6 @@ package org.ethereum.gui; import org.ethereum.core.Block; import org.ethereum.core.Transaction; import org.ethereum.db.RepositoryImpl; -import org.ethereum.facade.Repository; import org.ethereum.manager.WorldManager; import org.ethereum.vm.*; import org.spongycastle.util.encoders.Hex; diff --git a/ethereumj-studio/src/main/java/org/ethereum/gui/StateExplorerWindow.java b/ethereumj-studio/src/main/java/org/ethereum/gui/StateExplorerWindow.java index 04ab12a6..7b226bfe 100755 --- a/ethereumj-studio/src/main/java/org/ethereum/gui/StateExplorerWindow.java +++ b/ethereumj-studio/src/main/java/org/ethereum/gui/StateExplorerWindow.java @@ -10,19 +10,14 @@ import java.awt.Toolkit; import javax.swing.JFrame; import javax.swing.JPanel; -import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.awt.event.FocusEvent; -import java.awt.event.FocusListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; -import java.awt.event.KeyAdapter; -import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; -import java.awt.event.MouseListener; import java.math.BigInteger; +import java.net.URL; import java.util.Map; import javax.swing.Box; @@ -38,24 +33,18 @@ import javax.swing.SwingUtilities; import javax.swing.table.AbstractTableModel; import org.ethereum.core.AccountState; -import org.ethereum.core.Block; -import org.ethereum.core.Transaction; import org.ethereum.db.ContractDetails; import org.ethereum.manager.WorldManager; import org.ethereum.util.Utils; import org.ethereum.vm.DataWord; -import org.ethereum.vm.OpCode; import org.ethereum.vm.Program; -import org.ethereum.vm.ProgramInvoke; -import org.ethereum.vm.ProgramInvokeFactory; -import org.ethereum.vm.Program.ProgramListener; import org.spongycastle.util.encoders.DecoderException; import org.spongycastle.util.encoders.Hex; import java.awt.Component; import java.awt.FlowLayout; -public class StateExplorerWindow extends JFrame{ +public class StateExplorerWindow extends JFrame { private ToolBar toolBar = null; private JTextField txfAccountAddress; @@ -71,7 +60,7 @@ public class StateExplorerWindow extends JFrame{ public StateExplorerWindow(ToolBar toolBar) { this.toolBar = toolBar; - java.net.URL url = ClassLoader.getSystemResource("ethereum-icon.png"); + URL url = ClassLoader.getSystemResource("ethereum-icon.png"); Toolkit kit = Toolkit.getDefaultToolkit(); Image img = kit.createImage(url); this.setIconImage(img);