summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-transaction
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-modules/archiva-base/archiva-transaction')
-rw-r--r--archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/AbstractTransactionEvent.java10
-rw-r--r--archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/FileTransaction.java2
2 files changed, 6 insertions, 6 deletions
diff --git a/archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/AbstractTransactionEvent.java b/archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/AbstractTransactionEvent.java
index 7dbe03bf7..73fabc998 100644
--- a/archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/AbstractTransactionEvent.java
+++ b/archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/AbstractTransactionEvent.java
@@ -40,11 +40,11 @@ import java.util.Map;
public abstract class AbstractTransactionEvent
implements TransactionEvent
{
- private Map<File, File> backups = new HashMap<File, File>();
+ private Map<File, File> backups = new HashMap<>();
- private List<File> createdDirs = new ArrayList<File>();
+ private List<File> createdDirs = new ArrayList<>();
- private List<File> createdFiles = new ArrayList<File>();
+ private List<File> createdFiles = new ArrayList<>();
/**
* {@link List}&lt;{@link Digester}&gt;
@@ -75,7 +75,7 @@ public abstract class AbstractTransactionEvent
protected void mkDirs( File dir )
throws IOException
{
- List<File> createDirs = new ArrayList<File>();
+ List<File> createDirs = new ArrayList<>();
File parent = dir;
while ( !parent.exists() || !parent.isDirectory() )
@@ -87,7 +87,7 @@ public abstract class AbstractTransactionEvent
while ( !createDirs.isEmpty() )
{
- File directory = (File) createDirs.remove( createDirs.size() - 1 );
+ File directory = createDirs.remove( createDirs.size() - 1 );
if ( directory.mkdir() )
{
diff --git a/archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/FileTransaction.java b/archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/FileTransaction.java
index 35d8b005c..80fab4b32 100644
--- a/archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/FileTransaction.java
+++ b/archiva-modules/archiva-base/archiva-transaction/src/main/java/org/apache/archiva/transaction/FileTransaction.java
@@ -32,7 +32,7 @@ import org.codehaus.plexus.digest.Digester;
*/
public class FileTransaction
{
- private List<AbstractTransactionEvent> events = new ArrayList<AbstractTransactionEvent>();
+ private List<AbstractTransactionEvent> events = new ArrayList<>();
public void commit()
throws TransactionException