Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Cleanup useless code and settings, updated READMEs and such.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsonnier committed Jan 21, 2016
1 parent 0e23c69 commit 8eede65
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 26 deletions.
6 changes: 5 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[0.7.3-SNAPSHOT]

** Other changes
Borrowed from HPPC: PR #5: OSGi descriptors in JAR manifests, bundle packaging. (Guillaume Delafosse)

HPPCRT-XX: Modernize the build process notably using Retrolambda (https://github.com/orfjackal/retrolambda) to generate a unique Java 5 compatible Jar,
which is fine since the API was the same between the 1.6 and 1.5 jars previously.
As a contrast, building the HPPC-RT project now REQUIRES Java 8 due to Retrolambda.


[0.7.2]
** API-breaking changes
HPPCRT-46: Remove CurstomHash and replace by equals/hashCode overrides in normal hash containers.
Expand Down
14 changes: 7 additions & 7 deletions INSTALL.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Hacking HPPC-RT:
----------------
The project as a whole needs Java 7, although the final runtime jars are still Java 5 and Java 6 compatible. To assure such
The project as a whole requires Java 8, although the final runtime jar is still Java 5 compatible. To assure such
antiquated compatibility, some restrictions must be enforced:

* hppcrt (sources) : Runtime sources either templates or hand-coded must use 1.5 API at best, while retaining the 1.6 compiler level for convenience. (ex. @Override allowed on subclasses AND interface implementations)
The strict 1.5 API compatibility is checked by the animal-sniffer plugin, before start building the runtime jars,
then during the Jar generation phase the 'retrotranslator' generates a Java 5 Jar together with the Java 6 one.
* hppcrt (sources) : Runtime sources either templates or hand-coded must use 1.5 API at best, although the language constructs could be up to Java 8. (lambdas...)
Then, the Retrolambda plugin translates Java 8 language constructs to 1.5 language ones, and finally
the strict 1.5 API compatibility is checked by the animal-sniffer plugin before building the runtime jar.

* hppcrt (tests): templates and hand-coded tests are allowed to be fully 1.6 compatible, including the API.
* hppcrt (tests): templates and hand-coded tests are allowed to be fully 1.8 compatible, including the API.

* hppcrt-template-processor: No particular restriction, the processor classes used for generate sources and tests are Java 7 level.
* hppcrt-benchmarks: No particular restriction, they are Java 7 level.
* hppcrt-template-processor: allowed to be fully Java 8 compatible, including the API.
* hppcrt-benchmarks: allowed to be fully Java 8 compatible, including the API.


Maven shortcuts
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ That means in particular using the enhanced for loop without any dynamic allocat

All these new features are heavily Unit tested, so should work well.

Binaries are provided in 2 flavors : one compatible with Java 1.5, the other with Java 1.6 and beyond.
Both binaries have no external dependencies, and offer the same API.
The Jar lib is compatible with Java 1.5 and have no external dependencies.

Stable version is available on Maven:
````
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1711,11 +1711,7 @@ public KTypeVTypeHashMap<KType, VType> clone() {

//We must NOT clone because of independent perturbations seeds
cloned.putAll(this);

cloned.allocatedDefaultKeyValue = this.allocatedDefaultKeyValue;
cloned.allocatedDefaultKey = this.allocatedDefaultKey;
cloned.defaultValue = this.defaultValue;


return cloned;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ public KTypeVTypeIdentityHashMap<KType, VType> clone()

//We must NOT clone because of the independent perturbation seeds
cloned.putAll(this);

cloned.allocatedDefaultKeyValue = this.allocatedDefaultKeyValue;
cloned.allocatedDefaultKey = this.allocatedDefaultKey;
cloned.defaultValue = this.defaultValue;


return cloned;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -906,9 +906,7 @@ public KTypeHashSet<KType> clone() {

//We must NOT clone, because of the independent perturbation seeds
cloned.addAll(this);

cloned.allocatedDefaultKey = this.allocatedDefaultKey;


return cloned;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ public KTypeIdentityHashSet<KType> clone() {

//We must NOT clone because of the independent perturbation values
cloned.addAll(this);

cloned.allocatedDefaultKey = this.allocatedDefaultKey;


return cloned;
}

Expand Down

0 comments on commit 8eede65

Please sign in to comment.