Skip to content

Commit

Permalink
Перенес bit Writer/Reader в отдельную зависимость
Browse files Browse the repository at this point in the history
  • Loading branch information
demidko committed Nov 9, 2021
1 parent 3a6e587 commit a81474e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 189 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
`maven-publish`
}
dependencies {
api("com.github.demidko:bits:2021.11.12")
api("com.github.demidko:aot-bytecode:2021.10.29")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
testImplementation("org.hamcrest:hamcrest:2.2")
Expand Down
101 changes: 0 additions & 101 deletions src/main/java/com/github/demidko/aot/BitReader.java

This file was deleted.

88 changes: 0 additions & 88 deletions src/main/java/com/github/demidko/aot/BitWriter.java

This file was deleted.

3 changes: 3 additions & 0 deletions src/main/java/com/github/demidko/aot/WordformMeaning.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import static java.util.Collections.emptyList;
import static java.util.Objects.hash;

import com.github.demidko.bits.BitReader;
import com.github.demidko.bits.BitWriter;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.UncheckedIOException;
Expand Down Expand Up @@ -106,6 +108,7 @@ public static List<WordformMeaning> lookupForMeanings(String w) throws IOExcepti
* @return словоформ смысла
*/
public static WordformMeaning lookupForMeaning(long id) throws IOException {

BitReader reader = new BitReader(id);
int lemmaId = reader.readInt();
int flexionIndex = reader.readInt();
Expand Down

0 comments on commit a81474e

Please sign in to comment.