ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [11/11] ant-ivy git commit: diamont operator
Date Wed, 14 Jun 2017 09:37:28 GMT
diamont operator


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/225afb8b
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/225afb8b
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/225afb8b

Branch: refs/heads/master
Commit: 225afb8bad88c9bbb70b24d9ac3c28fb21f39465
Parents: c7d4b53
Author: Jan Matèrne <jhm@apache.org>
Authored: Wed Jun 14 11:06:18 2017 +0200
Committer: Jan Matèrne <jhm@apache.org>
Committed: Wed Jun 14 11:06:18 2017 +0200

----------------------------------------------------------------------
 src/java/org/apache/ivy/plugins/repository/vfs/VfsResource.java | 4 +---
 test/java/org/apache/ivy/core/sort/SortTest.java                | 3 ---
 2 files changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/225afb8b/src/java/org/apache/ivy/plugins/repository/vfs/VfsResource.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/repository/vfs/VfsResource.java b/src/java/org/apache/ivy/plugins/repository/vfs/VfsResource.java
index 53e4429..3250e96 100644
--- a/src/java/org/apache/ivy/plugins/repository/vfs/VfsResource.java
+++ b/src/java/org/apache/ivy/plugins/repository/vfs/VfsResource.java
@@ -63,7 +63,6 @@ public class VfsResource implements Resource {
             try {
                 resourceImpl = fsManager.resolveFile(vfsURI);
                 content = resourceImpl.getContent();
-
                 exists = resourceImpl.exists();
                 lastModified = content.getLastModifiedTime();
                 contentLength = content.getSize();
@@ -74,7 +73,6 @@ public class VfsResource implements Resource {
                 lastModified = 0;
                 contentLength = 0;
             }
-
             init = true;
         }
     }
@@ -88,7 +86,7 @@ public class VfsResource implements Resource {
      */
     public List<String> getChildren() {
         init();
-        ArrayList<String> list = new ArrayList<String>();
+        ArrayList<String> list = new ArrayList<>();
         try {
             if ((resourceImpl != null) && resourceImpl.exists()
                     && (resourceImpl.getType() == FileType.FOLDER)) {

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/225afb8b/test/java/org/apache/ivy/core/sort/SortTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/core/sort/SortTest.java b/test/java/org/apache/ivy/core/sort/SortTest.java
index cf10807..33031b8 100644
--- a/test/java/org/apache/ivy/core/sort/SortTest.java
+++ b/test/java/org/apache/ivy/core/sort/SortTest.java
@@ -196,7 +196,6 @@ public class SortTest {
      */
     @Test
     public void testLatestIntegration() {
-
         addDependency(md2, "md1", "latest.integration");
         addDependency(md3, "md2", "latest.integration");
         addDependency(md4, "md3", "latest.integration");
@@ -210,7 +209,6 @@ public class SortTest {
         for (List<ModuleDescriptor> toSort : permutations) {
             assertSorted(expectedOrder, sortModuleDescriptors(toSort, nonMatchReporter));
         }
-
     }
 
     /**
@@ -236,7 +234,6 @@ public class SortTest {
         for (List<ModuleDescriptor> toSort : permutations) {
             assertSorted(possibleOrder, sortModuleDescriptors(toSort, nonMatchReporter));
         }
-
     }
 
     /**


Mime
View raw message