Skip to content

Commit

Permalink
Merge pull request #98 from filip26/fix/code
Browse files Browse the repository at this point in the history
Minor code improvements
  • Loading branch information
filip26 authored Aug 6, 2024
2 parents 469a285 + 9e7db40 commit 7a106f4
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public JsonValue decode(Mapping mapping, DataItem value, String term, Collection
return null;
}

private static final String decode(ByteString dataItem) throws DecoderError {
private static final String decode(ByteString dataItem) {
return Multibase.BASE_58_BTC.encode(dataItem.getBytes());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public int arrayIndex() {
if (!isArrayItem()) {
throw new ClassCastException();
}
return (Integer)cursor.index();
return cursor.index();
}

@Override
Expand Down

This file was deleted.

This file was deleted.

32 changes: 0 additions & 32 deletions src/main/java11/com/apicatalog/cursor/cbor/CborCursorState.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class CborLdTestRunnerJunit {
StaticContextLoader.set("https://w3id.org/age/v1", CborLdTestRunnerJunit.class, "age-v1.jsonld");
}

public final static DocumentLoader LOADER = new UriBaseRewriter(
public static final DocumentLoader LOADER = new UriBaseRewriter(
CborLdTest.BASE,
"classpath:",
new UriBaseRewriter("https://raw.githubusercontent.com/filip26/iridium-cbor-ld/main/src/test/resources/com/apicatalog/cborld/",
Expand Down

0 comments on commit 7a106f4

Please sign in to comment.