Skip to content

Commit

Permalink
Set minimum required java version to 1.8 before releasing version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
albfernandez committed Jan 4, 2024
1 parent 08296e0 commit 7e29122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</issueManagement>

<properties>
<compiler.level>1.6</compiler.level>
<compiler.level>1.8</compiler.level>
<compiler.module.level>9</compiler.module.level>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand All @@ -57,8 +57,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
Expand Down
12 changes: 1 addition & 11 deletions src/main/java/com/linuxense/javadbf/DBFUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,17 +412,7 @@ protected static byte[] readAllBytes(File file) throws IOException {
}

protected static BitSet getBitSet(byte[] bytes) {
// return BitSet.valueOf(bytes);

BitSet bits = new BitSet();
for (int i = 0; i < bytes.length * 8; i++) {
byte b = bytes[i/8];
int bit = b & (1 << (i % 8));
if (bit > 0) {
bits.set(i);
}
}
return bits;
return BitSet.valueOf(bytes);
}

protected static double toDouble(byte[] data) {
Expand Down

0 comments on commit 7e29122

Please sign in to comment.