Skip to content

Commit

Permalink
Merge pull request #24 from olyutorskii/release/v2.101.4
Browse files Browse the repository at this point in the history
Release/v2.101.4
  • Loading branch information
olyutorskii committed Jun 21, 2017
2 parents 4e4e08a + 2779a28 commit 4b1cbc2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ DoubDabC Changelog
## WIP
Released on 20XX-XX-XX

## v2.101.4
Released on 2017-06-22
- Correspond to Maven 3.5
- add JarabraDix info to README

## v2.101.2
Released on 2017-04-24
- Merge DecimalText and DecimalOut to BcdSequence
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ like `Integer.toUnsignedString(int)`.
Let's convert absolute value that follows minus\(-\) sign.


## What is the difference with [**JarabraDix**][JDX] ? ##

* If you use binary integer value that fit in 'long' or 'int',
and you have modern JVM and CPU that supports fast integer division,
let's try **JarabraDix**.


## How to build ##

* DoubDabC needs to use [Maven 3.0.1+](https://maven.apache.org/)
Expand Down Expand Up @@ -87,6 +94,7 @@ Just compile Java sources under `src/main/java/` if you don't use Maven.
[PBCD]: https://en.wikipedia.org/wiki/Binary-coded_decimal#Packed_BCD "Packed Binary coded decimal"
[BQCD]: https://en.wikipedia.org/wiki/Bi-quinary_coded_decimal "Bi-quinary coded decimal"
[LSFT]: https://en.wikipedia.org/wiki/Bitwise_operation#Bit_shifts "Left shift"
[JDX]: https://github.com/olyutorskii/JarabraDix
[MIT]: https://opensource.org/licenses/MIT


Expand Down
2 changes: 1 addition & 1 deletion pmdrules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!--
Custom rule set
for PMD [ https://pmd.github.io/ ] 5.5.2 or later
for PMD [ https://pmd.github.io/ ] 5.6.1 or later
Copyright(c) 2017 olyutorskii
-->
Expand Down
12 changes: 5 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<groupId>io.github.olyutorskii</groupId>
<artifactId>doubdabc</artifactId>

<version>2.101.2</version>
<version>2.101.4</version>

<packaging>jar</packaging>
<name>DoubDabC</name>
Expand Down Expand Up @@ -58,9 +58,7 @@
<contributors/>
<mailingLists/>

<prerequisites>
<maven>3.0.1</maven>
</prerequisites>
<!-- prerequisites/ -->

<modules/>

Expand Down Expand Up @@ -101,7 +99,7 @@
<checkstyle.suppressions.location>${project.basedir}/checkstyle-suppressions.xml</checkstyle.suppressions.location>
<checkstyle.enable.rss>false</checkstyle.enable.rss>

<pmd-plugin.version>3.7</pmd-plugin.version>
<pmd-plugin.version>3.8</pmd-plugin.version>

<findbugs-plugin.version>3.0.4</findbugs-plugin.version>
<findbugs.effort>Max</findbugs.effort>
Expand Down Expand Up @@ -223,7 +221,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<version>2.20</version>
<configuration>
<enableAssertions>true</enableAssertions>
</configuration>
Expand Down Expand Up @@ -431,7 +429,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.19.1</version>
<version>2.20</version>
</plugin>

<plugin>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/github/olyutorskii/doubdabc/BcdSequence.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public CharSequence subSequence(int start, int end)
if(end > precision) throw new IndexOutOfBoundsException();

copyChar(start, end);
String result =new String(this.charBuf, start, end - start);
String result = new String(this.charBuf, start, end - start);

return result;
}
Expand All @@ -190,7 +190,7 @@ public CharSequence subSequence(int start, int end)
public String toString(){
int precision = this.decimal.getPrecision();
buildChar();
String result =new String(this.charBuf, 0, precision);
String result = new String(this.charBuf, 0, precision);
return result;
}

Expand Down

0 comments on commit 4b1cbc2

Please sign in to comment.