Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libcommons-collections3-java
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Java Maintainers
libcommons-collections3-java
Commits
e1a812ce
Commit
e1a812ce
authored
9 years ago
by
Emmanuel Bourg
Browse files
Options
Downloads
Patches
Plain Diff
Refreshed the patches
parent
affaa4b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+3
-1
3 additions, 1 deletion
debian/changelog
debian/patches/OSGI_Manifest.diff
+8
-21
8 additions, 21 deletions
debian/patches/OSGI_Manifest.diff
debian/patches/java8-compatibility.patch
+104
-104
104 additions, 104 deletions
debian/patches/java8-compatibility.patch
with
115 additions
and
126 deletions
debian/changelog
+
3
−
1
View file @
e1a812ce
libcommons-collections3-java (3.2.
1-9
) UNRELEASED; urgency=medium
libcommons-collections3-java (3.2.
2-1
) UNRELEASED; urgency=medium
* Team upload.
* New upstream release
- Refreshed the patches
* Use XZ compression for the upstream tarball
-- Emmanuel Bourg <ebourg@apache.org> Mon, 16 Nov 2015 10:58:45 +0100
...
...
This diff is collapsed.
Click to expand it.
debian/patches/OSGI_Manifest.diff
+
8
−
21
View file @
e1a812ce
...
...
@@ -4,29 +4,16 @@ Forwarded: not-needed
--- a/build.xml
+++ b/build.xml
@@ -148,6 +148,7 @@
<filter token="title" value="${component.title}"/>
<filter token="package" value="${component.package}"/>
<filter token="version" value="${component.version}"/>
<filter token="title" value="${component.title}"/>
<filter token="package" value="${component.package}"/>
<filter token="version" value="${component.version}"/>
+ <filter token="lastmodified" value="${lastmodified}"/>
</filterset>
<fileset dir="${source.conf}" includes="*.MF"/>
</copy>
---
a/src/conf/MANIFEST.MF
</filterset>
<fileset dir="${source.conf}" includes="*.MF"/>
</copy>
---
/dev/null
+++ b/src/conf/MANIFEST.MF
@@ -1,12 +1,47 @@
-Manifest-Version: 1.0
-Package: org.apache.commons.collections
-Extension-Name: commons-collections
-Specification-Version: @version@
-Specification-Vendor: Apache Software Foundation
-Specification-Title: Commons Collections
-Implementation-Version: @version@
-Implementation-Vendor: Apache Software Foundation
-Implementation-Title: Commons Collections
-Implementation-Vendor-Id: org.apache
-X-Compile-Source-JDK: 1.2
-X-Compile-Target-JDK: 1.2
\ No newline at end of file
@@ -0,0 +1,47 @@
+Manifest-Version: 1.0
+Package: org.apache.commons.collections
+Extension-Name: commons-collections
...
...
This diff is collapsed.
Click to expand it.
debian/patches/java8-compatibility.patch
+
104
−
104
View file @
e1a812ce
...
...
@@ -4,42 +4,114 @@ Description: Renames the MultiMap.remove(Object, Object) method to removeMapping
are those used by Commons Collections 4 (packaged as libcommons-collections4-java).
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/src/java/org/apache/commons/collections/map/MultiValueMap.java
+++ b/src/java/org/apache/commons/collections/map/MultiValueMap.java
@@ -153,7 +153,7 @@
* @param value the value to remove
* @return the value removed (which was passed in), null if nothing removed
*/
- public Object remove(Object key, Object value) {
+ public Object removeMapping(Object key, Object value) {
Collection valuesForKey = getCollection(key);
if (valuesForKey == null) {
return null;
--- a/src/java/org/apache/commons/collections/MultiHashMap.java
+++ b/src/java/org/apache/commons/collections/MultiHashMap.java
@@ -331,7 +331,7 @@
* @param item the value to remove
* @return the value removed (which was passed in), null if nothing removed
*/
- public Object remove(Object key, Object item) {
+ public Object removeMapping(Object key, Object item) {
Collection valuesForKey = getCollection(key);
if (valuesForKey == null) {
return null;
* @param item the value to remove
* @return the value removed (which was passed in), null if nothing removed
*/
- public Object remove(Object key, Object item) {
+ public Object removeMapping(Object key, Object item) {
Collection valuesForKey = getCollection(key);
if (valuesForKey == null) {
return null;
--- a/src/java/org/apache/commons/collections/MultiMap.java
+++ b/src/java/org/apache/commons/collections/MultiMap.java
@@ -66,7 +66,7 @@
* @throws ClassCastException if the key or value is of an invalid type
* @throws NullPointerException if the key or value is null and null is invalid
*/
- public Object remove(Object key, Object item);
+ public Object removeMapping(Object key, Object item);
//-----------------------------------------------------------------------
/**
* @throws ClassCastException if the key or value is of an invalid type
* @throws NullPointerException if the key or value is null and null is invalid
*/
- public Object remove(Object key, Object item);
+ public Object removeMapping(Object key, Object item);
//-----------------------------------------------------------------------
/**
--- a/src/java/org/apache/commons/collections/map/MultiKeyMap.java
+++ b/src/java/org/apache/commons/collections/map/MultiKeyMap.java
@@ -197,7 +197,7 @@
* @param key2 the second key
* @return the value mapped to the removed key, null if key not in map
*/
- public Object remove(Object key1, Object key2) {
+ public Object removeMultiKey(Object key1, Object key2) {
int hashCode = hash(key1, key2);
int index = map.hashIndex(hashCode, map.data.length);
AbstractHashedMap.HashEntry entry = map.data[index];
--- a/src/java/org/apache/commons/collections/map/MultiValueMap.java
+++ b/src/java/org/apache/commons/collections/map/MultiValueMap.java
@@ -153,7 +153,7 @@
* @param value the value to remove
* @return the value removed (which was passed in), null if nothing removed
*/
- public Object remove(Object key, Object value) {
+ public Object removeMapping(Object key, Object value) {
Collection valuesForKey = getCollection(key);
if (valuesForKey == null) {
return null;
--- a/src/test/org/apache/commons/collections/TestMultiHashMap.java
+++ b/src/test/org/apache/commons/collections/TestMultiHashMap.java
@@ -217,7 +217,7 @@
MultiHashMap one = new MultiHashMap();
Integer value = new Integer(1);
one.put("One", value);
- one.remove("One", value);
+ one.removeMapping("One", value);
MultiHashMap two = new MultiHashMap();
assertEquals(two, one);
@@ -269,7 +269,7 @@
assertEquals(4, map.totalSize());
map.remove("A");
assertEquals(3, map.totalSize());
- map.remove("B", "BC");
+ map.removeMapping("B", "BC");
assertEquals(2, map.totalSize());
}
@@ -292,7 +292,7 @@
map.remove("A");
assertEquals(0, map.size("A"));
assertEquals(3, map.size("B"));
- map.remove("B", "BC");
+ map.removeMapping("B", "BC");
assertEquals(0, map.size("A"));
assertEquals(2, map.size("B"));
}
@@ -464,11 +464,11 @@
map.put("A", "AA");
map.put("A", "AB");
map.put("A", "AC");
- assertEquals(null, map.remove("C", "CA"));
- assertEquals(null, map.remove("A", "AD"));
- assertEquals("AC", map.remove("A", "AC"));
- assertEquals("AB", map.remove("A", "AB"));
- assertEquals("AA", map.remove("A", "AA"));
+ assertEquals(null, map.removeMapping("C", "CA"));
+ assertEquals(null, map.removeMapping("A", "AD"));
+ assertEquals("AC", map.removeMapping("A", "AC"));
+ assertEquals("AB", map.removeMapping("A", "AB"));
+ assertEquals("AA", map.removeMapping("A", "AA"));
assertEquals(new MultiHashMap(), map);
}
--- a/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java
+++ b/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java
@@ -315,10 +315,10 @@
switch (key.size()) {
case 2:
assertEquals(true, multimap.containsKey(key.getKey(0), key.getKey(1)));
- assertEquals(value, multimap.remove(key.getKey(0), key.getKey(1)));
+ assertEquals(value, multimap.removeMultiKey(key.getKey(0), key.getKey(1)));
assertEquals(false, multimap.containsKey(key.getKey(0), key.getKey(1)));
assertEquals(size - 1, multimap.size());
- assertEquals(null, multimap.remove(key.getKey(0), key.getKey(1)));
+ assertEquals(null, multimap.removeMultiKey(key.getKey(0), key.getKey(1)));
assertEquals(false, multimap.containsKey(key.getKey(0), key.getKey(1)));
break;
case 3:
--- a/src/test/org/apache/commons/collections/map/TestMultiValueMap.java
+++ b/src/test/org/apache/commons/collections/map/TestMultiValueMap.java
@@ -16
0
,7 +16
0
,7 @@
@@ -16
1
,7 +16
1
,7 @@
MultiValueMap one = new MultiValueMap();
Integer value = new Integer(1);
one.put("One", value);
...
...
@@ -48,7 +120,7 @@ Forwarded: not-needed
MultiValueMap two = new MultiValueMap();
assertEquals(two, one);
@@ -18
6
,7 +18
6
,7 @@
@@ -18
7
,7 +18
7
,7 @@
assertEquals(4, map.totalSize());
map.remove("A");
assertEquals(3, map.totalSize());
...
...
@@ -57,7 +129,7 @@ Forwarded: not-needed
assertEquals(2, map.totalSize());
}
@@ -20
3
,7 +20
3
,7 @@
@@ -20
4
,7 +20
4
,7 @@
assertEquals(2, map.size());
map.remove("A");
assertEquals(2, map.size());
...
...
@@ -66,7 +138,7 @@ Forwarded: not-needed
assertEquals(2, map.size());
}
@@ -22
6
,7 +22
6
,7 @@
@@ -22
7
,7 +22
7
,7 @@
map.remove("A");
assertEquals(0, map.size("A"));
assertEquals(3, map.size("B"));
...
...
@@ -75,7 +147,7 @@ Forwarded: not-needed
assertEquals(0, map.size("A"));
assertEquals(2, map.size("B"));
}
@@ -3
27
,11 +3
27
,11 @@
@@ -3
38
,11 +3
38
,11 @@
map.put("A", "AA");
map.put("A", "AB");
map.put("A", "AC");
...
...
@@ -92,75 +164,3 @@ Forwarded: not-needed
assertEquals(new MultiValueMap(), map);
}
--- a/src/test/org/apache/commons/collections/TestMultiHashMap.java
+++ b/src/test/org/apache/commons/collections/TestMultiHashMap.java
@@ -217,7 +217,7 @@
MultiHashMap one = new MultiHashMap();
Integer value = new Integer(1);
one.put("One", value);
- one.remove("One", value);
+ one.removeMapping("One", value);
MultiHashMap two = new MultiHashMap();
assertEquals(two, one);
@@ -269,7 +269,7 @@
assertEquals(4, map.totalSize());
map.remove("A");
assertEquals(3, map.totalSize());
- map.remove("B", "BC");
+ map.removeMapping("B", "BC");
assertEquals(2, map.totalSize());
}
@@ -292,7 +292,7 @@
map.remove("A");
assertEquals(0, map.size("A"));
assertEquals(3, map.size("B"));
- map.remove("B", "BC");
+ map.removeMapping("B", "BC");
assertEquals(0, map.size("A"));
assertEquals(2, map.size("B"));
}
@@ -464,11 +464,11 @@
map.put("A", "AA");
map.put("A", "AB");
map.put("A", "AC");
- assertEquals(null, map.remove("C", "CA"));
- assertEquals(null, map.remove("A", "AD"));
- assertEquals("AC", map.remove("A", "AC"));
- assertEquals("AB", map.remove("A", "AB"));
- assertEquals("AA", map.remove("A", "AA"));
+ assertEquals(null, map.removeMapping("C", "CA"));
+ assertEquals(null, map.removeMapping("A", "AD"));
+ assertEquals("AC", map.removeMapping("A", "AC"));
+ assertEquals("AB", map.removeMapping("A", "AB"));
+ assertEquals("AA", map.removeMapping("A", "AA"));
assertEquals(new MultiHashMap(), map);
}
--- a/src/java/org/apache/commons/collections/map/MultiKeyMap.java
+++ b/src/java/org/apache/commons/collections/map/MultiKeyMap.java
@@ -197,7 +197,7 @@
* @param key2 the second key
* @return the value mapped to the removed key, null if key not in map
*/
- public Object remove(Object key1, Object key2) {
+ public Object removeMultiKey(Object key1, Object key2) {
int hashCode = hash(key1, key2);
int index = map.hashIndex(hashCode, map.data.length);
AbstractHashedMap.HashEntry entry = map.data[index];
--- a/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java
+++ b/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java
@@ -315,10 +315,10 @@
switch (key.size()) {
case 2:
assertEquals(true, multimap.containsKey(key.getKey(0), key.getKey(1)));
- assertEquals(value, multimap.remove(key.getKey(0), key.getKey(1)));
+ assertEquals(value, multimap.removeMultiKey(key.getKey(0), key.getKey(1)));
assertEquals(false, multimap.containsKey(key.getKey(0), key.getKey(1)));
assertEquals(size - 1, multimap.size());
- assertEquals(null, multimap.remove(key.getKey(0), key.getKey(1)));
+ assertEquals(null, multimap.removeMultiKey(key.getKey(0), key.getKey(1)));
assertEquals(false, multimap.containsKey(key.getKey(0), key.getKey(1)));
break;
case 3:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment